I just want to know on how can I make rule when the website sends me a json response instead of html? On the start url first response, it gives me an html response, but when I navigated through pages, it gives me json response. Here my rule:
Rule(SgmlLinkExtractor(restrict_xpaths=('//div[@class="GridTimeline-items"]'), tags=('div'),
attrs=('data-min-position'), allow=(r''), process_value=my_process_value_friends),
callback='parse_friends', follow=True),
My question is, how can I apply xpath on json response?
Thank you ,