Question
I want to extract the hotel name and the current room price of some hotels daily from https://www.expedia.ca/Hotel-
I am a small hotel owner and want those info quite often, and hope I can do it with codes automatically in someway. You are expert in this field, what is the easiest ways to get those information? Can you give me some example codes?
Sincerely, Yinyan Guo
Answer
Yinyan, you’ve accessed the site which is the business directory. This site is a data aggregator, that allows server users to access data pages from its own db, which, in turn, might have been accumulated through scraping from online offers, aggregators…
- Site developers protect their content from online copy.
- Data amount is constantly changing and thus requires constant scrape for maintaining current/fresh info.
- Custom scripting script.
- Use software or an online scraping service to scrape Expedia
- Use browser plugins to get data on demand since you want only “the current room price of some hotels daily“.
Option 1. Scripting script
Option 2. Scraping software
Note, you’d probably need to leverage proxies having a regular scrape, so consider those posts on proxies [for web crawlers].
Option 3. Plugin
P. S. Yinyan, you may find free scrape codes provided by ScrapeHero useful. However, do not be naive in thinking that those codes will work from ground zero.