3 Messages
•
110 Points
Thu, Nov 14, 2019 11:05 AM
Web scrape specific data from imdb project
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!Question
•
Updated
a year ago
10
1
Helpful Widget
How can we improve?
Responses
steve
Employee
•
1.1K Messages
•
45.1K Points
a year ago
https://help.imdb.com/article/imdb/general-information/can-i-use-imdb-data-in-my-software/G5JTRESSHJBBHTGX?pf_rd_m=A2FGELUUNOQJNL&pf_rd_p=3aefe545-f8d3-4562-976a-e5eb47d1bb18&pf_rd_r=DBGHDA3RDWFJPVSM3GYS&pf_rd_s=center-1&pf_rd_t=60601&pf_rd_i=interfaces&ref_=fea_mn_lk1#
0