Skip to content

Instantly share code, notes, and snippets.

@aeron7
Created November 30, 2019 15:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save aeron7/a22fcde4c50cebbb270a142ff05e8491 to your computer and use it in GitHub Desktop.
Save aeron7/a22fcde4c50cebbb270a142ff05e8491 to your computer and use it in GitHub Desktop.
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
Copy link

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