Tradingview scraper tool
Project description
Tradingview scraper
The goal is to develop this package for scapping anything on https://tradingview.com with realtime response.
Thanks to contributors
To Do List:
- Scrape ideas section of a symbol
- Export as
csv
file - Export as
JSON
- Scrape indicators status data
- Review and fix bugs etc ... (You suggest)
Features:
- Scrape idea's informations like:
Idea's Title
Idea's symbol
Idea's timeframe
Idea's timestamp
Idea's label
Idea's social informations
Idea's description
- Three ways to scrape webpage:
Scrape just first page
Scrape all pages
Scrape specific range of pages
- Save data into a CSV file
- Return json format
Installation:
Open your favorite Terminal and run the command:
pip install tradingview-scraper
Example:
from tradingview_scraper import scraper
ClassA.scraper()
Output format:
- A tuple which contain:
- A pandas dataframe (contains: timeStamp, symbol, timeFrame, label, title, socialInfo)
- A string (Symbol description in the first webpage)
- A Json which contain keys like bellow:
dict_keys(['symbol_description', '0', '1', '2', '3', '4', '5'])
which each of '0' to '5' keys containing ideas details like 'timestamp','symbol','timefram', etc.
Note:
Default arguments are set to:
ClassA.scraper(symbol = 'btc',
wholePage = False,
startPage = 1,
endPage = 2,
to_csv = False,
return_json = False)
Argument | Description |
---|---|
symbol | Symbol name |
wholePage | Set it True if you want to scrape all pages (Then specify startPage and endPage) |
startPage | specify first page number to scrape |
endPage | specify last page number to scrape |
to_csv | Set it True to save data as a 'CSV' file |
return_json | Set it True to have json format in return |
License
- MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for tradingview-scraper-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab88fe99a01872ad8cf21dacf4bce9e65fdead2731e3cded90ce9e62b11bcd6 |
|
MD5 | cd1f6559e0beda70ea815c8d333a44a2 |
|
BLAKE2b-256 | b9111ae4b9e2583f05f636f44cbea993ced5d937eb0e69b480ac5511028fdeb8 |
Close
Hashes for tradingview_scraper-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f2cf3b754b0449f27574a63cc819d9cfb73720dbf9b2a99214c00d6d2c95d9f |
|
MD5 | 7340d674b91d73ed4a8f9ec63004476e |
|
BLAKE2b-256 | 96c5ba43b0f98b23daaa37800fb069fb788fe2be1c22b439b7732b680d09f1a0 |