semvec/pypi-packages huggingface dataset:
anole 0.2.3
Like a anole, fake everything.
License: MIT
Requires Python: >=3.3.0
Keywords: user,agent,user agent,useragent,fake,fake useragent,fake user agent,anole

## 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
```