1
here'dan doktorların isimleriyle ilişkili tüm bağlantıları bulmaya çalışıyorum. Sanırım XPath'ımda bir sorun var ama emin değilim.Python lxml web kazıma: xpath çalışmıyor
from lxml import html
import requests
page = requests.get('http://www.cpsnl.ca/default.asp?adv=1&com=DoctorSearch&selComm=&txtFName=&Certification_Code_Desc=&txtLName=&NameHidden=all&offset=0')
tree = html.fromstring(page.content)
links = tree.xpath('//*[@id="main_con"]/table/tbody/tr/td/a')
print(links)