❔ ✅ Manipulating JSON
I'm using MediaWiki API to receive information about movies. From that I need to extract movie titles and page IDs to use them to get their specific sites and extract when the movie was made, the initial response doesn't contain this information. Finally, the title and year will be displayed in a list on a web page. That's quite a lot of information to process so I got a bit lost in there 🤔
6 Replies
I have a model class for deserializing this too
I'm not sure if it's even a good idea because I'd have to make the call for each of the movies for the production date and that seems like a lot of traffic, I tried to find a different API but filmweb isn't publicly available and imdb is restricted, I'm not exactly a movie person .-. unleeessss wikipedia?
Anyway my first guess to make things easy would be to make each of the movies a separate object but maybe there's a better way
I mean, yeah, each movie should be a separate instance of
Movie
just wondering, how to store them since they won't be named?
In a list maybe?
(it's a smol brain day today, sorry)
Sure, a list works
it works just fine but uh oh now I see that a list isn't clickable the same way a button is?
I thought that I could just make them clickable and get informations about the selected movie from the dubbingpedia
so like, attach an event that'd send a request but that seems to not be possible
and I can't use <a href=""> because I don't know the exact links and I'd have to download the entire page's source anyway
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.