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
from tvw_scraper.models import Sectors
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
scraper = TradingviewWsScraper()
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())
Metadata
Release files for tvw-scraper 0.0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tvw_scraper-0.0.17.tar.gz | 7.1 kB | Without provenance | Details for tvw_scraper-0.0.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tvw_scraper-0.0.17-py3-none-any.whl | Python 3 | none | any | Details for tvw_scraper-0.0.17-py3-none-any.whl |
Total release size: 15.6 kB
Release files / tvw_scraper-0.0.17.tar.gz
| Download URL | tvw_scraper-0.0.17.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f421e15d11e42ec558f5fcde1a48a1e8fc50950080524ee2db89c44f0f2caeea
|
|
BLAKE2b-256 checksum How to use checksums |
112a09ae1be5d58670d024eef709e4ff800cab0e86c9349b738395eb0855f8de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.2 Linux/4.19.0-6-amd64
|
Release files / tvw_scraper-0.0.17-py3-none-any.whl
| Download URL | tvw_scraper-0.0.17-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3509855e1fd11608d596be5b9e7c2b05548f042e8ec68e4de3413baad16d36e9
|
|
BLAKE2b-256 checksum How to use checksums |
c1a3a07711a0f99f650caf3fff33ea1cb4492a848712d4ae22c9eba3da841a58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.2 Linux/4.19.0-6-amd64
|
Security for tvw-scraper 0.0.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.