Like a anole, fake everything.
Project description
Anole
Like a anole, fake everything.
Currently support user agent and name fake, other will be coming soon.
Thanks for use.
How to use
from anole import UserAgent
# Suppose this is the request headers
headers = {
"referer": "https://leesoar.com"
}
user_agent = UserAgent()
user_agent.fake(headers)
It will check if there is "user-agent" in headers. If not, "user-agent" will update with random.
from anole import Name
name = Name()
name.fake() # Whole name's length is between 2 and 3.
name.fake(length=2) # You can specify the length of the name.
name.fake(surname="李") # And you can specify the surname.
Use as fake_useragent
from anole import UserAgent
user_agent = UserAgent()
user_agent.random
# or user_agent.chrome
# or other browsers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
anole-0.2.3.tar.gz
(4.9 kB
view details)
Built Distribution
anole-0.2.3-py3-none-any.whl
(5.5 kB
view details)
File details
Details for the file anole-0.2.3.tar.gz
.
File metadata
- Download URL: anole-0.2.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.0.2rc1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddfeba110d04a2a26afaf29a7572effa5cd5a1d871e0db369c1d895e9d6c606f |
|
MD5 | 060ac1fb7815ce4c905354be373595ac |
|
BLAKE2b-256 | 441d4a293a2dc7cd25c6497991609e20c072be14810741a160b88596190007a5 |
File details
Details for the file anole-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: anole-0.2.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.0.2rc1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb1aa3d2f7438508cb004c280c0aaaf59651861c64919269e70df39c0c958ec |
|
MD5 | 5bc92e11a5a5a6cba818626860f06c9b |
|
BLAKE2b-256 | a73de7ed1222456d3cb5a105627bb53f7857c23ac5502c6ce0c8d614115886a0 |