I know how to fetch the XPATHs for HTML datapoints with Scrapy. But I have to scrape all the URLs(starting URLs), of this page on this site, which are written in JSON format:
https://highape.com/bangalore/all-events
view-source:https://highape.com/bangalore/all-events
I usually write this in this format:
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)
Please tell me what I should write in 'What To Write Here?' portion.
View page source of the url then copy line 76 - 9045 and save as data.json in your local drive then use this code...