-
Notifications
You must be signed in to change notification settings - Fork 226
File not found on crawl method #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting @henriquearaujo-98 (I moved it here as this is an issue, and discussions are more for new features, best practices, etc.) It's not clear why you are getting this issue. Can you please share the full code in the file Also, can you please share the versions of packages you are using (advertools, pandas, and scrapy) and Python version? |
Hi, thank you for your quick reply. My code looks like this import advertools as adv
import pandas as pd
adv.crawl('https://example.com', 'my_output_file.jl', follow_links=True) I'm running it on Python 3.8.5 and advertools version 0.13.2 downloaded through the pip3 package manager |
Can't see anything wrong with the code. I tested it on Linux and Mac, works fine. It might be referring to the spider file that cannot be found. Can you please try to create a virtual environment, install advertools within the environment and see if it works? Something like this, but please check the docs if needed python3 -m venv my-env
my-env\Scripts\activate.bat
pip install advertools
python
import advertools as adv
adv.crawl('https://example.com', 'my_output_file.jl', follow_links=True) |
@henriquearaujo-98 Just curious, if you tried this, and if it worked? Please let me know. |
I'm following the documentation with this line of code
But it returns this error:
Even though my directory looks like this:
Here is the complete trace:
As you can see it doesn't specify which file was not found but I assume it is the output file.
Any help is greatly appreciated!
Originally posted by @henriquearaujo-98 in #247
The text was updated successfully, but these errors were encountered: