Metadata-Version: 2.1
Name: anole
Version: 0.2.2
Summary: Like a anole, fake everything.
Home-page: https://leesoar.com
Author: leesoar
Author-email: secure@tom.com
License: MIT
Keywords: user,agent,user agent,useragent,fake,fake useragent,fake user agent,anole
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.3.0
Description-Content-Type: text/markdown
Requires-Dist: requests (==2.23.0)
Requires-Dist: retrying (==1.3.3)


## Anole

Like a anole, fake everything.

Currently support user agent and name fake, other will be coming soon.

Thanks for use.


### How to use
```python
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.


```python
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
```python
from anole import UserAgent


user_agent = UserAgent()
user_agent.random
# or user_agent.chrome
# or other browsers
```


