Skip to content

fingerprint function deprecation warning #6

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

Open
joeharrison714 opened this issue Oct 31, 2022 · 0 comments
Open

fingerprint function deprecation warning #6

joeharrison714 opened this issue Oct 31, 2022 · 0 comments

Comments

@joeharrison714
Copy link

joeharrison714 commented Oct 31, 2022

After upgraded scrapy, The follow warning occurs on every request that uses crawl_once:

2022-10-28 15:54:21 [py.warnings] WARNING: /scrapyd/venv/lib/python3.9/site-packages/scrapy_crawl_once/middlewares.py:96: ScrapyDeprecationWarning: Call to deprecated function scrapy.utils.request.request_fingerprint().

If you are using this function in a Scrapy component, and you are OK with users of your component changing the fingerprinting algorithm through settings, use crawler.request_fingerprinter.fingerprint() instead in your Scrapy component (you can get the crawler object from the 'from_crawler' class method).

Otherwise, consider using the scrapy.utils.request.fingerprint() function instead.
@joeharrison714 joeharrison714 changed the title fingerprint error fingerprint function deprecation warning Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant