this post was submitted on 19 Jul 2023
42 points (97.7% liked)
ADHD
9625 readers
13 users here now
A casual community for people with ADHD
Values:
Acceptance, Openness, Understanding, Equality, Reciprocity.
Rules:
- No abusive, derogatory, or offensive post/comments.
- No porn, gore, spam, or advertisements allowed.
- Do not request for donations.
- Do not link to other social media or paywalled content.
- Do not gatekeep or diagnose.
- Mark NSFW content accordingly.
- No racism, homophobia, sexism, ableism, or ageism.
- Respectful venting, including dealing with oppressive neurotypical culture, is okay.
- Discussing other neurological problems like autism, anxiety, ptsd, and brain injury are allowed.
- Discussions regarding medication are allowed as long as you are describing your own situation and not telling others what to do (only qualified medical practitioners can prescribe medication).
Encouraged:
- Funny memes.
- Welcoming and accepting attitudes.
- Questions on confusing situations.
- Seeking and sharing support.
- Engagement in our values.
Relevant Lemmy communities:
lemmy.world/c/adhd will happily promote other ND communities as long as said communities demonstrate that they share our values.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Reduce scope. Look at what you're doing and cut out all the "nice to haves" until you have just the "need to haves".
For a behindthevoiceactors clone, the bare minimum would be a simple web page with a search bar for actor names. You could use a query string in the URL that gets passed to an IMDb API call that then renders a simple page that just has the actor's name as the header and a plain table listing shows/movies/games and their role(s) and years.
Everything on top of that, pretty CSS, pictures, hyperlinks to other places, that's all fluff that you can add on after you're already "done" having created a minimum viable product. And at the nice to have stage, you can put it down at any point without feeling like it's unfinished.
I'm using a similar API, I think IMDb wasn't publicly available or something like this? I don't remember exactly. I need Polish actors if that makes any difference.
Good idea with focusing on the main features. I wanted to try this at first but with web appinstead of the usual console app was a little awkward but I'll look into this again.
Currently the number 1 issue is extracting actor names. They don't come in json like an array or something, they're only available via parsing a page so a string with html markup and stuff. There was some confusion because when I asked about that, I might've described it wrong because people on the server thought I'm doing web scraping? I'm not sure if it counts as scraping if it's from an api though. I'll have to clear it up probably but that last misunderstanding was really stressful.
Interesting. An API call shouldn't return HTML, since it's essentially just a proxy to query a DB for some value, so I can see why they'd think you're web scraping. Might want to try a different API?
But yeah, most APIs have a fee associated with them, so web scraping gets around that. You could fully commit to it, nothing wrong with that. If you're web scraping though, I'd definitely do some studying up on how the DOM works. Once you learn to navigate it, things get a lot easier. https://www.w3schools.com/whatis/whatis_htmldom.asp
Good luck!!
I'll see if there are any other APIs, maybe I missed some. I specifically need the Polish ones so it's a bit tricky