Suporte do The Movie Database

import requests

import json

from pprint import pprint

api_key = """#######################"""

sorter = "/discover/movie?certification_country=US&certification.lte=G&sort_by=popularity.desc"


url = "https://api.themoviedb.org/3/discover/movie/?api_key=" + str(api_key) + "&language=en-US" + sorter

r = requests.get(url)

data = r.json()

pprint(data)

Here is the code I am running and it is supposed to get back the top rated childrens movies I know this because I copy and pasted it directly from the examples on the /discover/movie page. However no matter how I change the sorter variable the function will only return the most popular movies in general. the first is Logan and I know this is not a childrens movie so what am I doing wrong?

2 respostas (na página 1 de 1)

Jump to last post

You're not building a valid URL.

sorter = "&certification_country=US&certification.lte=G&sort_by=popularity.desc"
url = "https://api.themoviedb.org/3/discover/movie?api_key=" + str(api_key) + "&language=en-US" + sorter

Would be along the right path.

Thanks man!

Não consegue encontrar um certo Filme ou Série? Inicie Sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em Páginas de Temporadas de Séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade