https://github.com/hemusuku86/fingerprint-generator
Generate Consistent JavaScript Fingerprint from User-Agent String, In Full Python and No Browser
https://github.com/hemusuku86/fingerprint-generator
antibot bot browser fingerprint fingerprinting javascript scraper scraping webdriver
Last synced: about 2 months ago
JSON representation
Generate Consistent JavaScript Fingerprint from User-Agent String, In Full Python and No Browser
- Host: GitHub
- URL: https://github.com/hemusuku86/fingerprint-generator
- Owner: hemusuku86
- Created: 2025-07-18T15:38:18.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-18T15:50:59.000Z (12 months ago)
- Last Synced: 2025-07-18T19:58:20.363Z (12 months ago)
- Topics: antibot, bot, browser, fingerprint, fingerprinting, javascript, scraper, scraping, webdriver
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fingerprint-generator
Generate Fingerprint from User-Agent, In Python.
Properties and Method results be consistent with User-Agent.
### Now we have:
- all navigator properties!
- window.screen
### Aiming to add:
- more navigator
- more window properties
- canvas API reproduce
# 📚 Usage
Example:
```py
>>> import fp_generator
>>> fp = fp_generator.fingerprint("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36")
>>> fp.Navigator() # {'appCodeName': 'Mozilla'...
>>> fp.Navigator(languages=["en-US", "ja"])["language"] # "en-US", you can change languages manually because they're dependented with your IP or proxy.
>>> fp.Navigator()["maxTouchPoints"] # 0
>>> fp = fp_generator.fingerprint("Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/138.0.7204.156 Mobile/15E148 Safari/604.1")
>>> fp.Navigator()["maxTouchPoints"] # 5 , ofc results will be consistent with your user-agent.
```