You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed some issues and omissions in headers and tests
- Scrape.do'ya gönderilen istekteki header bilgilerini döndürme özelliği eklendi. Kitaplık ile sunulmayan headerdeki server-timing, scrape.do-rid gibi değerlere ihtiyaç duyulması durumunda kullanılabilir.
- Headerdeki sdo değerlerinin doğru bir şekilde dönüp dönmediğini kontrol eden ve html döndüğünde hata verip vermediğini kontrol eden 2 yeni test eklendi.
- playWithBrowser Testi daha detaylı hale getirildi.
Copy file name to clipboardExpand all lines: src/lib.ts
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,9 @@ export class ScrapeDo {
59
59
try{data=JSON.parse(data)}catch{}
60
60
61
61
response.data=data
62
+
63
+
// There may be information that you want to get from the returned header. However, since this is not an important part, it is not important to get an error.
* @property {any} data - Data returned from the request.
200
+
* @property {Record<string, string>} sdoResponseHeaders - Contains the headers returned from the request sent to Scrape.do. It is independent of the headers in the request sent to the site.
198
201
* @property {Response} response - Response object from the fetch request.
0 commit comments