Created
September 30, 2019 05:44
-
-
Save lakshay-arora/5eef53e0dca413139399ee4f0d23261e 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
# find all the sections with specifiedd class name | |
cards_data = data.find_all('div', attrs={'class', 'width100 fl htlListSeo hotel-tile-srp-container hotel-tile-srp-container-template new-htl-design-tile-main-block'}) | |
# total number of cards | |
print('Total Number of Cards Found : ', len(cards_data)) | |
# source code of hotel cards | |
for card in cards_data: | |
print(card) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment