Skip to content

Instantly share code, notes, and snippets.

@alixaprodev
Created April 21, 2022 10:27
Show Gist options
  • Save alixaprodev/8b2388d865533a72aa9fe62d727e501a to your computer and use it in GitHub Desktop.
Save alixaprodev/8b2388d865533a72aa9fe62d727e501a to your computer and use it in GitHub Desktop.
web scrapping with requests-html in python
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