updated README with playwright installation command, added pytest workflow

This commit is contained in:
Tristan Lee
2023-09-15 01:26:51 -05:00
parent 92ae29c722
commit 4836fd93aa
2 changed files with 16 additions and 0 deletions

15
.github/workflows/pytest.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Test
on: [push]
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
- run: pip install -e .[dev]
- run: python -m playwright install
- run: pytest --exitfirst --failed-first

View File

@@ -8,6 +8,7 @@ The tool helps to download posts and videos from TikTok for a given set of hasht
1. Make sure you have Python 3.9 or a later version installed
2. Install the tool with pip: `pip install tiktok-hashtag-analysis`
- Alternatively you can install directly from the latest version on GitHub: `pip install git+https://github.com/bellingcat/tiktok-hashtag-analysis`
3. Make sure [Playwright](https://playwright.dev/python/docs/intro) is properly installed byrunning the command `python -m playwright install`
You should now be ready to start using it.