Scrapes the Screener window for a given TradingView chart layout.
- Selenium-chromedriver
- Packaged as executable Docker container for headless execution
- Parameters passed via argparse
- Secrets passed via environment variables
- Pytest running in tox, with poetry env support
- GitHub Actions Docker publish workflow
poetry install
docker pull quantrams/tvscraper:latest
NOTE: You will need to create a .env
file containing TradingView credentials. An example is provided.
source .env
python -m tvscraper --help
docker run --env-file .env quantrams/tvscraper:latest --help
- Run unit tests in tox:
tox --
- Requires TV credentials defined in your
.env
- Requires TV credentials defined in your
- Run GitHub Actions pipeline locally using act
act --env-file .env --env DOCKER_USER='my_dockerhub_username' --secret DOCKER_PASSWORD='my_dockerhub_password' push
- Run tests only (no push) using act
act --env-file .env --env pull_request