我是python数据废弃的新手,尝试从kickstarter中废弃数据。 我使用以下代码从
我正在使用以下代码
test_page=requests.get('https://www.kickstarter.com/discover/advanced?term=security&sort=magic&seed=2425842&page=1')
test_pagetree= html.fromstring(test_page.content)
test_loc= test_pagetree.xpath('//[@id="projects_list"]/li/div/div/div/a/span')[0].text
以及“列表索引超出范围”错误。你知道吗
我正在使用googlechrome检查并获取上面元素的xpath。你知道吗
可以使用
location-name
类选择location元素,如下所示:相关问题 更多 >
编程相关推荐