我知道如何用Scrapy获取HTML数据点的xpath。但是我必须从这个网站上获取这个页面的所有url(起始url),它们是用JSON格式编写的:
https://highape.com/bangalore/all-events
查看源:https://highape.com/bangalore/all-events
我通常是这样写的:
def parse(self, response):
events = response.xpath('**What To Write Here?**').extract()
for event in events:
absolute_url = response.urljoin(event)
yield Request(absolute_url, callback = self.parse_event)
请告诉我在这里写什么部分。在
查看url的页面源代码,然后复制第76-9045行并另存为数据.json在本地驱动器中,然后使用此代码。。。在
相关问题 更多 >
编程相关推荐