Web scrape specific data from imdb project

  • 1
  • Question
  • Updated 10 months 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)
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 10 months ago

  • 1
Photo of Ed Jones(XLIX)

Ed Jones(XLIX)

  • 23311 Posts
  • 27783 Reply Likes
Do it here within the database.

Start here and look at all the options. Have Fun!!!

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.

Photo of Steve

Steve, Official Rep

  • 1807 Posts
  • 1425 Reply Likes