semvec/pypi-packages huggingface dataset:
pornhub-api-sskender 0.0.1
Unofficial API for pornhub.com in Python
Requires Python: >=3.6

# PornHub Unofficial API
Unofficial API for pornhub.com in Python

## Usage

#### Create client
```python
import pornhub
client = pornhub.PornHub()
```

#### Create client with proxy 
```python
import pornhub
client = pornhub.PornHub("5.135.164.72", 3128)
#With proxy, given a Proxy IP and Port. For the countries with restricted access like Turkey, etc.
```

#### Grab stars
```python
for star in client.getStars(10):
    print(star)
    print(star["name"])
```

#### Create client with search keywords
```python
keywords = ["word1", "word2"]
client = pornhub.PornHub(keywords)

for video in client.getVideos(10,page=2):
    print(video)
    print(video["url"])
```

## License
MIT license