The Movie Database-ondersteuning

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...

4 antwoorden (op pagina 1 van 1)

Jump to last post

Do you get an error? What's the HTTP status or body you get back?

This is the Error Code:

return self._call_chain(*args)

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

HTTP Error 406: Not Acceptable

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.

Thank you very much, thats great :)

Film of tv-serie niet gevonden? Meld je aan om deze toe te voegen.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op tv-seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met tv-series

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c schakelen sluiten/openen
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen