this post was submitted on 03 Jan 2024
21 points (100.0% liked)

Programming

423 readers
3 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

I'm a retired Unix sysadmin. Over the years I've built things in COBOL, FORTAN, C, perl, rexx, PHP, visual basic, various Unix shells and maybe others. Nothing has been a real "application" - mostly just utilities to help me get things done.

Now that I'm retired, and it's cold outside, I'm curious to try some more coding - and I have an idea.

The music communities here seem to post links to YouTube. I generally use Lemmy on my phone but don't use YouTube, or listen to music, on my phone if I can help it. I'd like to scrape a music community here and add the songs posted to a playlist in my musicbrainz account.

Does that sound like a reasonable learner project? Any suggestions for language and libraries appreciated. My preferred IDE is vim on bash and I have a home server running Linux where this could run as a daemon, or be scheduled.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] GreatBlueHeron@lemmy.ca 3 points 10 months ago (1 children)

Yes, I'm working on it now. Struggling with basic stuff like pulling values out of the json returned by the API when I ask for a list of posts. Python really does not click for me, but I'm determined, for now, to keep at it. An the RSS feed seems like a much easier (than what..?) way to just get new posts with each run - thank you!

[โ€“] ericjmorey@programming.dev 5 points 10 months ago

I don't like Python either. But I use it because it's widely used because many others find it easy to learn and work with (I guess people like us think a bit differently). Maybe you should forge ahead with PHP (it's having a mini resurgence in popularity).

If you're sticking with Python, make sure you use the built in json module. If you need a plain English tutorial, this tutorial on the json module is solid. If you want some real time help you can always chat in the Python Matrix Room (#python:matrix.org).