Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get hotel info from hotelscombined
#6
Like Larz a switch to English:

hotel_names = browser.find_elements_by_xpath("//h3[@class='hc-searchresultitem__hotelname']")
for hotel_name in hotel_names:
    print(hotel_name.text)
Output:
Hotel Midtown Richardson Cosmos Hotel Taipei Energy Inn Taipei City FN Hotel Taipei M Hotel - Main Station Palais De Chine Diary of Taipei Hotel Main Station Go Sleep Hotel - Hankou Taipei Triple Tiger Inn Cho Hotel Yomi Hotel - ShuangLian Park Taipei Hotel FX Hotel Taipei Nanjing East Road Branch Space Inn Mr Lobster Secret Den design hostel
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

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