We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some URLs will cause the focused_crawler to never return anything. The below code runs indefinitely:
from trafilatura.spider import focused_crawler import logging logging.basicConfig(level=logging.DEBUG) url = 'https://www.maersk.com/news/category/press-releases' focused_crawler(url, max_seen_urls=1, max_known_urls=100)
The text was updated successfully, but these errors were encountered:
Good point, it's not a bug in itself, the feature is not implemented yet. Let's put that on the list.
Sorry, something went wrong.
@JER-CE It was actually a bug, urllib.robotparser can try to load the URL indefinitely. Thanks for the detailed code snippet, it really helps.
Now it's still not working (on my computer at least) but we know why while debugging: the download fails (probably a user-agent issue).
Successfully merging a pull request may close this issue.
Some URLs will cause the focused_crawler to never return anything. The below code runs indefinitely:
The text was updated successfully, but these errors were encountered: