Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get hotel info from hotelscombined
#5
I use a combination of Selenium and BeautifulSoup for a couple of reasons.

In this particular instance, once you have expanded the JavaScript, there's no need for selenium anymore.

Beautiful Soup is the best way to traverse the DOM and scrape the data, so after all JavaScript has been expanded, I use Beautiful Soup to grab the desired data. It speeds up the process (which, in some instances, can be a considerable amount of time), and makes it easier to grab other data if needed later on.
Reply


Messages In This Thread
get hotel info from hotelscombined - by nikana - Apr-22-2019, 10:50 AM
RE: get hotel info from hotelscombined - by buran - Apr-22-2019, 12:03 PM
RE: get hotel info from hotelscombined - by Larz60+ - Apr-22-2019, 12:17 PM
RE: get hotel info from hotelscombined - by nikana - Apr-22-2019, 03:38 PM
RE: get hotel info from hotelscombined - by Larz60+ - Apr-22-2019, 08:34 PM
RE: get hotel info from hotelscombined - by buran - Apr-23-2019, 08:15 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020