Skip to content

Commit c0fb83c

Browse files
Update config
1 parent 68b8618 commit c0fb83c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bing-scraper/bing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
# set the poxy location to US to get the result in English
2020
"country": "GB",
2121
"proxy_pool": "public_residential_pool",
22+
"debug":True,
23+
"os":"linux",
24+
"auto_scroll":True,
25+
2226
}
2327

2428

@@ -130,7 +134,6 @@ async def scrape_search(query: str, max_pages: int = None):
130134
async def scrape_keywords(query: str):
131135
"""scrape bing search pages for keyword data"""
132136
url = f"https://www.bing.com/search?{urlencode({'q': query})}"
133-
print(f"url:{url}")
134137
log.info("scraping Bing search for keyword data")
135138
response = await SCRAPFLY.async_scrape(ScrapeConfig(url, **BASE_CONFIG, render_js=True))
136139
keyword_data = parse_keywords(response)

0 commit comments

Comments
 (0)