Created
September 30, 2019 06:01
-
-
Save lakshay-arora/f43c80d933f13f05dae285cdfacf514c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extract the hotel name and price per room | |
for card in cards_data: | |
# get the hotel name | |
hotel_name = card.find('p') | |
# get the room price | |
room_price = card.find('li', attrs={'class': 'htl-tile-discount-prc'}) | |
print(hotel_name.text, room_price.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment