Fingerprints for session.
I found this in js docs. Is this implemented also for python? How can i generate fingerprints based on session_id?
https://crawlee.dev/js/api/browser-pool/interface/FingerprintOptions#useFingerprintCache
FingerprintOptions | API | Crawlee for JavaScript · Build reliable...
Crawlee helps you build and maintain your crawlers. It's open source, but built by developers who scrape millions of pages every day for a living.
6 Replies
import hashlib
def fingerprint(session_id,salt="secret"):
return hashlib.sha256((session_id+salt).encode()).hexdigest()
print(fingerprint("abc123")) Please refer to this code. In Python, you’ll replicate that behavior using hashing (hashlib) or UUIDs.
def fingerprint(session_id,salt="secret"):
return hashlib.sha256((session_id+salt).encode()).hexdigest()
print(fingerprint("abc123")) Please refer to this code. In Python, you’ll replicate that behavior using hashing (hashlib) or UUIDs.
are you some kind of AI?
Hi @Drogbata , this is not supported in the Crawlee for Python, you can open a feature request, if you wish.
meaning here on discord or github?
@Drogbata just advanced to level 1! Thanks for your contributions! 🎉
In GitHub - https://github.com/apify/crawlee-python
GitHub
GitHub - apify/crawlee-python: Crawlee—A web scraping and browser...
Crawlee—A web scraping and browser automation library for Python to build reliable crawlers. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Wo...