Υποστήριξη για το The Movie Database

excuse the naivety, but how do i download a data set of all movies of lets say the last 10 years, i do have the api key, just not sure how to use it to generate results

17 απαντήσεις(στη σελίδα 1 από 2)

Jump to last post

Επόμενη σελίδαΤελευταία σελίδα

I take it you are not a programmer. Since this is the forum for support of the API, not a "How to program" forum, I would suggest using a site like StackOverflow and as your question there.

@angelxmoreno I take it you are not the best reader of posts.

I'm a programmer, thank you very much. Travis Bell has somewhat pointed me in the right direction. It's 1 movie per request and I was asking whether the api has an alternate method to get all movies in one request.

@stawadia my sincerest apologies. I was stuck on the last sentence " just not sure how to use it to generate results". I took it as you needing a walk-through on curl or something of that nature. I am glad you were able to find a solution to your problem.

@stawadia I have a similar need to download a movie list for lets say the last 10 years or so. How were you able to get to this?

I have a similar need to download a movie list for lets say the last 10 years or so. How were you able to get to this?

There is no way with the API. You would simply have to grab every movie ID and process your query locally.

The question is how do I get a list of the ID's?

Hi boomkap,

Start at 1 and go until the last id found in the latest movie method.

Ok. So its just serial starting from 1. Is it safe to assume that as a new movie get added to your catalog, the number just increments by 1. Are there range gaps that I should be aware of?

Thanks.

@boomkap There is no short cut for what you want to get. I tried using the genre list but the all the movie attributes are still on the movie method

http://api.themoviedb.org/3/genre/28,10759,...

@stawdia I really am only looking for the Movie Titles with the corresponding id's. I do not need the movie attributes et al. But I do understand what you are saying. I guess it's just knowing that the numbers are serial starting from 1 upwards. I should be prepared for gaps.

Ok. So its just serial starting from 1.

Yes.

Is it safe to assume that as a new movie get added to your catalog, the number just increments by 1?

Yes.

Are there range gaps that I should be aware of?

Not specifically but as movies have been deleted over the years there's many, many missing ids. These will 404 on the API.

Thanks.

There is a limit of 30 rqsts per 10 seconds, but writing a program to issue the API request by incrementing the id by 1 might do the trick. Exception handling for 404 will be needed.

Use the API to get the list of Genres. Then get the Movies associated with each Genre by Genre ID. Once you have the Movie data you can use the API to mine the rest of the data as needed movie by movie; Cast and Crew for example.

@gochinj I tried this and found that not all movies are in the list of movies returned by genre list.

Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.

Σε όλες τις σελίδες

s Εστίαση στη μπάρα αναζήτησης
p Άνοιγμα μενού προφίλ
esc Κλείσιμο ανοιχτού παραθύρου
? Άνοιγμα παραθύρου συντομεύσεων πληκτρολογίου

Στις σελίδες μέσων

b Επιστροφή στην προηγούμενη σελίδα(ή στην αρχική σελίδα όταν είναι εφικτό)
e Μετάβαση στη σελίδα επεξεργασίας

Στις σελίδες κύκλων σειρών

(Δεξιό βέλος) Μετάβαση στον επόμενο κύκλο
(Αριστερό βέλος) Μετάβαση στον προηγούμενο κύκλο

Στις σελίδες επεισοδίων σειρών

(Δεξιό βέλος) Μετάβαση στο επόμενο επεισόδιο
(Αριστερό βέλος) Μετάβαση στο προηγούμενο επεισόδιο

Σε όλες τις σελίδες εικόνων

a Άνοιγμα παραθύρου προσθήκης εικόνας

Σε όλες τις σελίδες επεξεργασίας

t Άνοιγμα επιλογέα μετάφρασης
ctrl+ s Υποβολή φόρμας

Στις σελίδες συζήτησης

n Δημιουργία νέας συζήτησης
w Ρύθμιση κατάστασης παρακολούθησης
p Ρύθμιση ως δημόσια/ιδιωτική
c Ρύθμιση ανοίγματος/κλεισίματος
a Άνοιγμα δραστηριότητας
r Απάντηση στη συζήτηση
l Μετάβαση στην τελευταία απάντηση
ctrl+ enter Υποβολή μηνύματος
(Δεξιό βέλος) Επόμενη σελίδα
(Αριστερό βέλος) Προηγούμενη σελίδα

Ρυθμίσεις

Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;

Σύνδεση