Drogbata
Drogbata3mo ago

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
Exp
Exp3mo ago
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.
Drogbata
DrogbataOP3mo ago
are you some kind of AI?
Vlada Dusek
Vlada Dusek3mo ago
Hi @Drogbata , this is not supported in the Crawlee for Python, you can open a feature request, if you wish.
Drogbata
DrogbataOP3mo ago
meaning here on discord or github?
MEE6
MEE63mo ago
@Drogbata just advanced to level 1! Thanks for your contributions! 🎉
Mantisus
Mantisus3mo ago
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...

Did you find this page helpful?