scrapfly / python-scrapfly

Scrapfly Python SDK for headless browsers and proxy rotation
https://scrapfly.io/docs/sdk/python
Other
28 stars 8 forks source link

"NameError: name 'url' is not defined" in pipelines.py #6

Closed humcasma closed 2 years ago

humcasma commented 2 years ago

In pipelines.py, in the 2 places where it says

for config in scrape_configs:
      if isinstance(config, str): # string link - dummy convert
          config = scrape_config=ScrapeConfig(url=url)

it should say

for config in scrape_configs:
      if isinstance(config, str): # string link - dummy convert
          config = scrape_config=ScrapeConfig(url=config)  # <------------------------------ OBS!
jjsaunier commented 2 years ago

Thanks for the report

Fixed in 0.8.2 to upgrade: pip install scrapfly-sdk -U