-
Notifications
You must be signed in to change notification settings - Fork 30
Scrapy is not scraping json items #9
Comments
hi, same problem here! |
It appears that AirBnb no longer sends a JSON with the necessary information. In order to make it work now you will have to update the locator to get the information from the HTML (using XPATH or CSS selectors). Also you will have to use Splash since some of the elements are not loaded if requested by Scrapy only. |
I'm having this same issue. I have no idea how to implement the update that idedaandre suggests. Any help would be awesome. |
What I would recommend is using Splash + Scrappy (if you google splash with scrappy there should be enough documentation on how to set it up properly). After you setup, splash+scrappy then use CSS selectors to get the data in the pages, since there's no longer a convenient .json to pull the data from. Hopefully, this can help the setup: https://github.com/scrapy-plugins/scrapy-splash https://blog.scrapinghub.com/2015/03/02/handling-javascript-in-scrapy-with-splash/ Cheers |
Hi there,
First of all, thanks for developing this code.
I'm having trouble with scrapy and the json items. I got it to scrape the pages I wanted and when I open the csv file it only comes with the urls, not the other items... What do you sugest?
Cheers
The text was updated successfully, but these errors were encountered: