Skip to content

Commit

Permalink
Merge pull request #587 from davidteather/nightly
Browse files Browse the repository at this point in the history
V3.9.6
  • Loading branch information
davidteather authored May 13, 2021
2 parents 14ac7b3 + b1273a0 commit 2f56b4d
Show file tree
Hide file tree
Showing 17 changed files with 362 additions and 191 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/create-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Generate Docs
on:
push:
branches:
- master
pull_request:
branches:
- master
- nightly
- 'releases/*'

jobs:
doc-create:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dependencies
run: |
pip install -r requirements.txt
pip install pdoc3
- name: Generate Docs
run: |
pdoc --html --force -o ./docs TikTokApi
mv docs/TikTokApi/* docs/
rm -r docs/TikTokApi
- name: Push
run: |
git config --global user.name 'David Teather'
git config --global user.email 'davidteather@users.noreply.github.com'
git commit -am "Automated Doc Generation"
git push
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ This is an unofficial api wrapper for TikTok.com in python. With this api you ar

To get started using this api follow the instructions below.

#### How to support the project
* Feel free to sponsor me on GitHub
* Feel free to tip the project using the brave browser
* Submit PRs for issues :)

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

```
```sh
pip install TikTokApi
python -m playwright install
```
Expand All @@ -43,7 +48,7 @@ If you're on MacOS you may need to install [XCode Developer Tools](https://webki

Clone this repository onto a local machine then run the following commands.

```
```sh
docker build . -t tiktokapi:latest
docker run -v TikTokApi --rm tiktokapi:latest python3 your_script.py
```
Expand All @@ -62,7 +67,7 @@ Please don't open an issue if you're experiencing one of these just comment if t

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

```
```py
from TikTokApi import TikTokApi
api = TikTokApi.get_instance()
# If playwright doesn't work for you try to use selenium
Expand All @@ -84,7 +89,7 @@ print(len(trending))
To run the example scripts from the repository root, make sure you use the
module form of python the interpreter

```
```sh
python -m examples.getTrending
```

Expand Down
2 changes: 1 addition & 1 deletion TikTokApi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from TikTokApi.tiktok import TikTokApi
from TikTokApi.tiktokuser import TikTokUser
from TikTokApi.tiktokuser import TikTokUser
Loading

0 comments on commit 2f56b4d

Please sign in to comment.