this post was submitted on 19 Jul 2023
40 points (97.6% liked)

ADHD

9285 readers
90 users here now

A casual community for people with ADHD

Values:

Acceptance, Openness, Understanding, Equality, Reciprocity.

Rules:

Encouraged:

Relevant Lemmy communities:

Autism

ADHD Memes

Bipolar Disorder

Therapy

Mental Health

Neurodivergent Life Hacks

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
 

How do I trick my brain into completing a project? I'm making an app that shows which voice actor plays a character in the movie and what other movies they act in. It's useful for me personally but I feel like I'm making something that's been done numerous times over and I lost the momentum because I'm on vacation with my family now. I ran into some problems with the project too and getting help takes a ton of time so it's disrupting the rythm too. I really have to put at least 2-3 projects like this for a portfolio;_;

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

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.

[–] [email protected] 3 points 1 year ago (1 children)

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!!

[–] [email protected] 2 points 1 year ago

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