Skip to content

Instantly share code, notes, and snippets.

@aeron7

aeron7/scanner.py Secret

Created Nov 30, 2019
Embed
What would you like to do?
Chartink Scanner
import requests_html
session = requests_html.HTMLSession()
r = session.get('https://chartink.com/screener/5candle')
r.html.render(sleep=5)
items = r.html.find("table#DataTables_Table_0",first=True)
for item in items.find("tr"):
data = [td.text for td in item.find("th,td")]
print(data)
@gajanandnashipudi

This comment has been minimized.

Copy link

@gajanandnashipudi gajanandnashipudi commented Aug 14, 2020

import requests_html

session = requests_html.HTMLSession()
r = session.get('https://chartink.com/screener/5candle')
r.html.render(sleep=5)
items = r.html.find("table#DataTables_Table_0",first=True)
for item in items.find("tr"):
data = [td.text for td in item.find("th,td")]
print(data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.