Skip to main content

Tradingview scraper tool

Project description

Tradingview scraper

The goal is to develop this package for scapping anything on https://tradingview.com with realtime response. I would thankful of any contributers

To Do List:

  • Scrape ideas section of a symbol
  • Export as csv file
  • Export as JSON
  • Scrape indicators status data
    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

Installation

Open your favorite Terminal and run the command:

pip install tradingview_scrape

Examples

from tradingview_scraper import scraper
ClassA.scraper()

Output:

A tuple which includes:

  1. A pandas dataframe (contains: timeStamp, symbol, timeFrame, label, title, socialInfo)
  2. A string (Symbol description in the first webpage)

Note:

Default arguments are set to:

ClassA.scraper(symbol = 'btc',
            wholePage = False,
            startPage = 1,
            endPage = 2, 
            to_csv = False)
Argument Description
symbol Symbol name
wholePage Set it True if you want to scrape all pages
startPage Set start page to scrape
endPage Set end page to scrape
to_csv Set True to save data as a 'CSV' file

License

  • MIT

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

tradingview-scraper-0.0.7.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

tradingview_scraper-0.0.7-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page