我正在尝试通过python抓取一些URL。特别是,我正在处理指向python的链接,我使用了chrome提供的inspect函数,我还在the Hong Kong electoral platforms.上使用了lxml的etree函数。tr/td[6]/div/a/@href|//*[@id="table-district-member"]/tbody/tr/td[4]
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763'} y = [link.get('href') for link in li if link.get('href').startswith("https://&qu