Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tag_rating = soup.findAll('span', itemprop="ratingValue")^M
- if tag_rating == []:
- rating = 0
- votes = 0
- else:
- rating = re.findall(r"[-+]?\d*\.\d+|\d+", str(tag_rating[0]))[0]^M
- tag_votes = soup.findAll('span', itemprop="ratingCount")^M
- votes_parts = re.findall(r"[-+]?\d*\.\d+|\d+", str(tag_votes[0]))^M
- votes = ','.join(votes_parts)^M
- tag_top250 = soup.findAll('a', href="/chart/top?ref_=tt_awd")^M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement