Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging/experimenting on individual property #48

Open
ecatkins opened this issue Jan 3, 2019 · 0 comments
Open

Debugging/experimenting on individual property #48

ecatkins opened this issue Jan 3, 2019 · 0 comments

Comments

@ecatkins
Copy link

ecatkins commented Jan 3, 2019

I've had good success using this library so far, simply running a survey over a bounding box.

I wanted to dive into the code, to see whether I could understand it and potentially extract different information from listings. However, I having trouble running the process on one property, so that I can experiment.

Below I've outlined the code that I am attempting to run, it returns a "Room 834190: found" message, but fails to extract any information (e.g. the price printed below returns None). Via debug print statements, I can also see that the website is returning an html response. But searching the HTML manually, I can't find the price, (e.g. CTRL-F for '140' in the case of the property listed below).

I'm sure I am misunderstanding something very simple! If anyone could provide any help, that would be fantastic.

from airbnb_listing import ABListing
from airbnb_config import ABConfig
config = ABConfig()
x = ABListing(config=config, room_id=834190, survey_id=None)
y = x.get_room_info_from_web_site(config.FLAGS_PRINT)
print(x.price)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant