Guest User

Untitled

a guest
Mar 28th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. import requests
  4.  
  5.  
  6. class Actor:
  7.     def __init__(self, actorid):
  8.         response = requests.get('http://api.themoviedb.org/3/person/' + str(actorid) + '?api_key=123SECRET').json()
  9.         self.name = response['name']
  10.         self.actorid = actorid
Advertisement
Add Comment
Please, Sign In to add comment