Comments (15)
Judging from where the error is, it looks like the -asa command failed to add Santiago to the search_area table. Please could you check that with "SELECT * FROM search_area"?
I'm going to guess that the "name" column of the search_area table holds something different from "Santiago". If that is the case, then you should update the table using "UPDATE search_area SET name = 'Santiago' WHERE search_area_id = ".
Currently I am maintaining only the -sb search type, so you would need to update the row with a bounding box before doing a search.
from airbnb-data-collection.
python airbnb.py -asa "Paris"
from airbnb-data-collection.
for me it works fine
from airbnb-data-collection.
I have this error
C:\airbnb>python airbnb.py -asv "lisboa" -c u.config
ERROR:root:Failed to add survey for lisboa
ERROR:root:Top level exception handler: quitting.
Traceback (most recent call last):
File "airbnb.py", line 442, in main
db_add_survey(ab_config, args.addsurvey)
File "airbnb.py", line 148, in db_add_survey
survey_id = cur.fetchone()[0]
TypeError: 'NoneType' object is not subscriptable
from airbnb-data-collection.
Have you added "lisboa" as a search_area first? You need to do "python airbnb.py -asa Lisboa -c u.config" first.
from airbnb-data-collection.
C:\airbnb>python airbnb.py -asa Lisboa -c casa.config
OK
C:\airbnb>python airbnb.py -asv "lisboa" -c casa.config
ERROR:root:Failed to add survey for lisboa
ERROR:root:Top level exception handler: quitting.
Traceback (most recent call last):
File "airbnb.py", line 442, in main
db_add_survey(ab_config, args.addsurvey)
File "airbnb.py", line 148, in db_add_survey
survey_id = cur.fetchone()[0]
TypeError: 'NoneType' object is not subscriptable
from airbnb-data-collection.
PostgreSQL is case sensitive, so your second command would have to be -asv Lisboa, not -asv lisboa.
from airbnb-data-collection.
I'm having the same issue, could you please help me solve this?
MacBook-Air-de-Carlos:airbnb-data-collection-master carlosarancibia$ python airbnb.py -asa "Santiago"
MacBook-Air-de-Carlos:airbnb-data-collection-master carlosarancibia$ python airbnb.py -asv "Santiago"
ERROR:root:Failed to add survey for Santiago
ERROR:root:Top level exception handler: quitting.
Traceback (most recent call last):
File "airbnb.py", line 442, in main
db_add_survey(ab_config, args.addsurvey)
File "airbnb.py", line 148, in db_add_survey
survey_id = cur.fetchone()[0]
TypeError: 'NoneType' object is not subscriptable
Thanks
from airbnb-data-collection.
Thanks Tom, i created the survey id manually and the survey area.
My only issue now is that the bathroom numeric column shows null for all entries. It seems they changed something, but bedrooms are working just fine
from airbnb-data-collection.
Same issue, different error. Could you help?
ERROR Error collecting city and neighborhood information
ERROR Error getting city info from website
ERROR Top level exception handler: quitting.
Thank you.
from airbnb-data-collection.
...
ERROR Error collecting city and neighborhood information
ERROR Error getting city info from website
ERROR Top level exception handler: quitting.
Traceback (most recent call last):
File "airbnb.py", line 442, in main
ws_get _city_info(ab_config, args.addsearcharea, ab_config.FLAGS_ADD)
File "airbnb.py", line 269, in ws_get_city_info
conn.commit()
Thanks!
from airbnb-data-collection.
Tanja what worked for me was manually creating the search_area_id with the bounding box for my city (search_area table) and then creating a survey with that search area in the survey table
Then you just run a -sb search with the survey id code
from airbnb-data-collection.
Thanks carancib for your superfast response! As you said, I manually created the search_area_id as well as the survey_id. Could you tell me how to now run the search with the survey id code? In other words, what should I type after "-sb ..." if the survey I want to run has the survey_id "1"?
Thanks!!
from airbnb-data-collection.
It then would be python airbnb.py -sb 1
from airbnb-data-collection.
Solved. Thank you carancib :-)
from airbnb-data-collection.
Related Issues (20)
- Not sure about retrieving process is running right HOT 1
- IP address blocked and survey quitting instantly HOT 4
- airbnb-home pictures-collection HOT 1
- Adding new search parameter/columns? HOT 1
- IP address blocked HOT 3
- Default Config selection HOT 2
- Suggestion : Fetching bounding box with Nominatim Api (OSM)
- Almost there... HOT 4
- IP address blocked when trying to run a search by bouding box. HOT 1
- same page of listings returned HOT 2
- Debugging/experimenting on individual property
- Airbnb API key HOT 4
- Missing properties in new version HOT 1
- get() takes exactly 1 argument (6 given) HOT 1
- Only 18 items returned HOT 1
- Proxy locations and fetched prices HOT 2
- Bounding box survey broken? HOT 2
- Conflicts between airbnb-data-collection and prompt-toolkit HOT 3
- Any up-to-date alternatives of this? HOT 5
- Some advice about license compliance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airbnb-data-collection.