Skip to content

First Attempt API#1

Closed
skthinks wants to merge 1 commit intomasterfrom
attempt1
Closed

First Attempt API#1
skthinks wants to merge 1 commit intomasterfrom
attempt1

Conversation

@skthinks
Copy link
Copy Markdown
Owner

@skthinks skthinks commented Jun 7, 2016

No description provided.



def get_name_of_movie(movie_id):
url = "http://imdb.com/title/"+movie_id+"/?ref_=fn_al_tt_1"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the URLs should go in settings.

use settings.IMDB_URL instead

@vaidik
Copy link
Copy Markdown

vaidik commented Jun 7, 2016

DId you run pep8 or pyflakes to make sure that your code conforms with standard style guides?

r = requests.get(url)
movie = {}
movie['Title'] = get_title(r.text)
movie['Movie Rating'] = get_rating(r.text)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if imdb doesn't give you some of the following data?

@skthinks skthinks closed this Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants