Last active
September 21, 2016 11:41
-
-
Save kp96/708d8b914b4ec73dabc1b8017b4a9113 to your computer and use it in GitHub Desktop.
IMDB Get Movie's First Review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
import requests | |
req = requests.get('http://www.imdb.com/title/tt0068646/reviews') | |
review_soup = BeautifulSoup(req.text, "html.parser") | |
print (review_soup.find("div", {"id" : "tn15content"}).findAll('p'))[1] | |
# pip install requests, bs4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment