File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @scrapingant/scrapingant-client" ,
3- "version" : " 0.0.2 " ,
3+ "version" : " 0.0.3 " ,
44 "description" : " ScrapingAnt API client for JavaScript" ,
55 "main" : " src/index.js" ,
66 "keywords" : [
Original file line number Diff line number Diff line change @@ -46,9 +46,11 @@ class ScrapingAntClient {
4646 *
4747 * @param {string } url
4848 * @param {object } [parameters]
49+ * @param {string } [parameters.browser]
4950 * @param {string } [parameters.cookies]
5051 * @param {string } [parameters.js_snippet]
5152 * @param {string } [parameters.proxy_country]
53+ * @param {string } [parameters.wait_for_selector]
5254 * @param {boolean } [parameters.return_text]
5355 */
5456 scrape ( url , parameters ) {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class ScrapingClient {
3737 } ,
3838 data : {
3939 url,
40- ...( parameters . browser && { browser : ! ! parameters . browser } ) ,
40+ ...( typeof parameters . browser !== 'undefined' && { browser : ! ! parameters . browser } ) ,
4141 ...( parameters . cookies && { cookies : parameters . cookies } ) ,
4242 ...( parameters . js_snippet && { js_snippet : base64encode ( parameters . js_snippet ) } ) ,
4343 ...( parameters . proxy_country && { proxy_country : parameters . proxy_country } ) ,
You can’t perform that action at this time.
0 commit comments