Hello,
I tried to get the movie data with python
req = urllib2.urlopen('http://api.themoviedb.org/3/movie/550?api_key=###')
print req
but it doesn´t work please help...
Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.
Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;
Δεν είσαι μέλος;
Απάντηση από τον/την Travis Bell
στις 29 Οκτώβριος 2012 στις 10:52 ΕΊΜΑΙ
Do you get an error? What's the HTTP status or body you get back?
Απάντηση από τον/την northstar
στις 29 Οκτώβριος 2012 στις 11:21 ΕΊΜΑΙ
This is the Error Code:
File "C:\Python27\lib\urllib2.py", line 378, in _call_chain result = func(*args) File "C:\Python27\lib\urllib2.py", line 527, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 406: Not Acceptable
Απάντηση από τον/την Travis Bell
στις 29 Οκτώβριος 2012 στις 11:27 ΕΊΜΑΙ
Makes sure you set a valid "Accept" header.
You can see valid and working Python examples on each method in our documentation. Just click the method and under the "show code sample" choose Python.
Απάντηση από τον/την northstar
στις 29 Οκτώβριος 2012 στις 11:37 ΕΊΜΑΙ
Thank you very much, thats great :)