Scraping tradingview.com
Project description
tvw_scraper
use asyncio and websockets to retrieve candles and symbol info from tradingview.com
Usage example:
retrieve symbols to use them later in websocket queries
from tvw_scraper.rest import SymbolScanner
SymbolScanner.get_sector_symbols(Sectors.russia)
{'totalCount': 937, 'data': [{'s': 'MOEX:AFKS', 'd': []}, {'s': 'MOEX:JNJ-RM', 'd': []} . . .
retrieve candles and some info from tradingview websocket:
import asyncio
from tvw_scraper.scraper import TradingviewWsScraper
from tvw_scraper.models import Intervals, Sectors
async def main():
result = await asyncio.gather(*[
scraper.get_candles('NASDAQ:NVDA',Intervals.interval_1day),
scraper.get_candles('NASDAQ:NVDA',Intervals.interval_1hour),
scraper.get_symbol('NASDAQ:NVDA')
])
asyncio.get_event_loop().run_until_complete(main())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tvw_scraper-0.0.13.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file tvw_scraper-0.0.13.tar.gz
.
File metadata
- Download URL: tvw_scraper-0.0.13.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.2 Linux/4.19.0-6-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5b3fba9c9f9e759398fb0964e0111d99b269d8b329a4345b9a62540f3c2d09b |
|
MD5 | 38358df7234209d4b7b42d39fefe956b |
|
BLAKE2b-256 | 7bd892ea9335a9c42035ddc30d7b105b062dd66dc63d535004dc7247c54f4556 |
File details
Details for the file tvw_scraper-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: tvw_scraper-0.0.13-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.2 Linux/4.19.0-6-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c2d804b7156f943555252eb637709dfa1ec8ba2dc7280cbcb9e1fd94f1bf939 |
|
MD5 | 96b1e66234c9b37b82d267b847585981 |
|
BLAKE2b-256 | c6ea2504401db7f589783f6cff279c345deb742104bca2a6289d0bf0b0266641 |