Xpath not getting any value

I am using below python to get stock list but its return empty list

from lxml import html
import requests
url = "https://chartink.com/screener/stock-closed-near-high"
resp = requests.get(url)
tree = html.fromstring(resp.content)
elements = tree.xpath('//*[@id="DataTables_Table_0"]/tbody/tr[*]/td[3]')
print(elements)

Out put is:-

[]

Can any one please help to fix this issue?

Upvotes: 0

Views: 62

Answers (0)

Related Questions