Created
April 21, 2022 10:27
-
-
Save alixaprodev/8b2388d865533a72aa9fe62d727e501a to your computer and use it in GitHub Desktop.
web scrapping with requests-html in python
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
from requests_html import HTMLSession | |
session = HTMLSession() | |
url = "https://www.imdb.com/chart/top/?ref_=nv_mv_250" | |
response = session.get(url) | |
titles_es=response.html.find('.titleColumn') | |
for movie_title in titles_es: | |
print(movie_title.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment