verginer / bnb_scrapy_tutorial Goto Github PK
View Code? Open in Web Editor NEWA tutorial on how to write a scrapy spider to get data from Airbnb
Home Page: http://www.verginer.eu/blog/web-scraping-airbnb/
License: MIT License
A tutorial on how to write a scrapy spider to get data from Airbnb
Home Page: http://www.verginer.eu/blog/web-scraping-airbnb/
License: MIT License
Could anybody confirm that this script is still functioning correctly?
Thanks
I just cloned your repo, but the script could not find the items
Traceback (most recent call last):
File "bnbspider.py", line 4, in
from bnbtutorial.items import BnbtutorialItem
ImportError: No module named bnbtutorial.items
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
Hi Luca,
Very nice scrapy tutorial!
Just a couple of questions: Is there any way for me to loop through multiple locations so that I can get a file that is more than the 300 results max listings?
Also, how do I add bedrooms/bathrooms into the scraper?
Hi Lucca,
few days ago everything worked well but today I can't scrap more than the first page.
I think the problem come from the way to find the last page.
In your code (bnbspyder.py) there are:
li[last()-1]/a/@href
the name of @Class looks different on the website and the 'page=' seems to have disappeared.
I didn't find how to fix it.
If you (or someone else) have an idea, please ;).
Cheers,
Michael
Hi,
so there is no hostid and nightly price in the aireventdata section of the airbnb website.
To run the code you need to remove both from the item.py and spyder.
Cheers,
Michael
Hi Luca,
May I know how do you done the plotting the data on the map?
I can't really get the idea or even the way to do so.
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.