semvec/pypi-packages huggingface dataset:
pytiktokbot 0.0.2
Python TikTok client.
License: MIT
Keywords: tiktok,python3,client,unofficial,selenium

# pytiktokbot
Python TikTok client.

This is fork of [this project](https://github.com/davidteather/TikTok-Api).

## Table of Contents
- [Getting Started](#getting-started)
    - [Installing](#installing)
    - [Common Issues](#common-issues)
- [Quick Start Guide](#quick-start-guide)
    - [Examples](https://github.com/davidteather/TikTok-Api/tree/master/examples)
- [Documentation](#documentation)
- [Built With](#built-with)
- [Authors](#authors)
- [License](#license)

## Getting Started

To get started using this api follow the instructions below.

### Installing

If you run into an issue please check the closed issues on the github. You're most likely not the first person to experience this issue. If nothing works feel free to open an issue.

```bash
pip install pytiktokbot
python -m playwright install
```

#### Docker Installation
TODO

## Quick Start Guide

Here's a quick bit of code to get the most recent trending on TikTok. 
There're more examples in the `examples` directory.

```
from pytiktokbot import TikTokApi
api = TikTokApi.get_instance()
# If playwright doesn't work for you try to use selenium
# api = TikTokApi.get_instance(use_selenium=True)

results = 10

# Since TikTok changed their API you need to use the custom_verifyFp option. 
# In your web browser you will need to go to TikTok, Log in and get the s_v_web_id value.
trending = api.trending(count=results, custom_verifyFp="")

for tiktok in trending:
    # Prints the id of the tiktok
    print(tiktok['id'])

print(len(trending))
```

## Documentation
TODO

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details