Web scrape specific data from imdb project

  • 1
  • Question
  • Updated 4 weeks ago
  • Answered

So i want to extract the movie scores from imdb with the score of 8.7 above.

i have done it up to here like this but i dont know what to do next https://bradfordremovalservice.com/

<!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}-->
import re<br alt="" title="" name="" value="" type="" target="" rel="">import requests<br alt="" title="" name="" value="" type="" target="" rel="">from bs4 import BeautifulSoup
l = list()
r = requests.get('https://www.imdb.com/chart/top?ref_=nv_mv_250')
soup = BeautifulSoup(r.text,'html.parser')
res = soup.find_all('strong')
for x in res:
    q = re.sub(r'\s+',' ',x.text)
    print(q)
it gives me all the scores. i just want 8.7 and above. and thanks for answering!
Photo of Noshairwan Khan

Noshairwan Khan

  • 3 Posts
  • 0 Reply Likes

Posted 4 weeks ago

  • 1
Photo of Ed Jones (XLIX)

Ed Jones (XLIX)

  • 18041 Posts
  • 20535 Reply Likes
Do it here within the database.
https://www.imdb.com/search/title/?user_rating=8.7,

Start here and look at all the options. Have Fun!!!
https://www.imdb.com/search/title/


You can add the titles to a list and export the list.

Lists FAQ
What are lists? How do I create a list? What can I add to my list? How can I edit my list? How can I move/rearrange the order of list items? Can I copy items from one list to another? What text formatting can I use in my list descripti ... Read more.

How can I export or print my list?

The 8.7 top of the page results.





(Edited)
Photo of Steve

Steve, Official Rep

  • 1573 Posts
  • 1232 Reply Likes