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
- Added the ability to return the header information in the request sent to scrape.do. It can be used in case of need for values such as server-timing, scrape.do-rid in the header that are not provided with the library.
- Added 2 new tests to check if the sdo values in the header are returned correctly and to check if the html returns an error.
- playWithBrowser Test has been made more detailed.
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