Skip to content

GraphQL request failed for 'nm0000148': HTTP 403 in get_filmography #184

Description

@DirkWuerdemann

Hi all,
I try to read the filmography of Harrison Ford.

my imdb_id =nm0000148
filmography = get_filmography(imdb_id)

Now I get the following Error:
File "C:\Users\DirkWuer\python\imdb\imdbinfo\getIMDB.py", line 138, in get_person
filmography = get_filmography(imdb_id)
File "C:\Users\DirkWuer\AppData\Local\Programs\Python\Python310\lib\site-packages\imdbinfo\services.py", line 530, in get_filmography
raw_json = _get_extended_name_info(imdb_id, lang)
File "C:\Users\DirkWuer\AppData\Local\Programs\Python\Python310\lib\site-packages\imdbinfo\services.py", line 819, in _get_extended_name_info
data = request_graphql_url(headers, person_id, payload, url)
File "C:\Users\DirkWuer\AppData\Local\Programs\Python\Python310\lib\site-packages\imdbinfo\services.py", line 251, in request_graphql_url
raise GraphQLError(
imdbinfo.exceptions.GraphQLError: GraphQL request failed for 'nm0000148': HTTP 403

The get_name(imdb_id) works fine.

Get person details

person = get_name(imdb_id)

When I try to read the aka's of a movie I have the same problem:
IMDB_ID=tt0082971

File "C:\Users\DirkWuer\python\imdb\imdbinfo\getIMDB.py", line 322, in get_movie_my
akas = get_akas(imdb_id)
File "C:\Users\DirkWuer\AppData\Local\Programs\Python\Python310\lib\site-packages\imdbinfo\services.py", line 455, in get_akas
raw_json = _get_extended_title_info(imdb_id, lang)
File "C:\Users\DirkWuer\AppData\Local\Programs\Python\Python310\lib\site-packages\imdbinfo\services.py", line 701, in _get_extended_title_info
data = request_graphql_url(headers, imdbId, payload, url)
File "C:\Users\DirkWuer\AppData\Local\Programs\Python\Python310\lib\site-packages\imdbinfo\services.py", line 251, in request_graphql_url
raise GraphQLError(
imdbinfo.exceptions.GraphQLError: GraphQL request failed for 'tt0082971': HTTP 403

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions