Installation¶
Requirements¶
- Python 3.8 or higher
- pandas
- requests
Install from PyPI¶
Install from Source¶
Verify Installation¶
import tvscreener as tvs
ss = tvs.StockScreener()
df = ss.get()
print(f"Retrieved {len(df)} stocks")
Upgrade¶
Dependencies¶
tvscreener automatically installs these dependencies:
| Package | Purpose |
|---|---|
pandas |
DataFrames for results |
requests |
HTTP requests to TradingView |
Optional Dependencies¶
For styled output (colored tables):
For Jupyter notebook integration:
Troubleshooting¶
Import Error¶
If you get an import error, ensure you're using Python 3.8+:
Connection Issues¶
tvscreener connects to TradingView's public API. If you experience timeouts:
- Check your internet connection
- Try again (TradingView may be rate-limiting)
- Use a VPN if TradingView is blocked in your region
No Data Returned¶
If ss.get() returns an empty DataFrame:
- Check your filters - they may be too restrictive
- Verify field names are correct (use autocomplete in your IDE)
- Try without filters first:
StockScreener().get()