Python Logo

Python – Simple URL Extractor

This one is pretty basic tier, but more useful than most. I had a website full of links to pages of video files. I wanted a list that I could stick into yt-dlp. I could do a bunch of copy and pasting, or I could use Python to scrape and take all the links. It takes a URL as a CLI Argument, specifically like: > main.py https://website.com It skims the page with Beautiful Soup and spits out a text file with the date-time-url.txt format. Useful if a site changes over time. The site I was scraping was using some relative…
Python Logo

Code Project: Automated List From Reddit Comments

This is one of those quick and kind of dirty projects I've been meaning to do for a while. Basically, I wanted a script that would scrape all of the top level comments from a Reddit post and push them out to a list. Most commonly, to use on /r/AskReddit style threads like, well, for this example, "What is a song from the 90s that young people should listen to." Basically, threads that ask for useful opinions on list. Sometimes it's lists of websites or something. Often it's music. The script here is made for music but could be adjusted…
Python Logo

100 Days of Python, Projects 58-65 #100DaysofCode

Judging by the comments on the lessons, The lessons are getting harder, though frankly, I am finding they are a bit easier.  I feel like my experience with Web Design is a lot of this.  I also have been looking a bit into how to properly host some of these apps to share here, on my Code Projects Page.  I believe I could set them up to run on a production Flask environment, with different ports, then just map sub directories n the domain to different ports. But I am doing my best not to get distracted.  Yes, I have…
Python Logo

100 Days of Python, Projects 45-50 #100DaysofCode

Things are continuing to be interesting and useful here with the introduction of Beautiful Soup, a tool used to parse unstructured data into usable structured data.  Well, more or less that's what it does.  Useful for parsing through Scraped Web Page data that does not have it's own API available. As normal, everything is on GitHub. Day 45 - Must Watch Movies List and Hacker News Headline Scraper As an introduction to using the tool, Beautiful Soup, we had two simple projects.  The training project actually feels more useful than the official project of the day, though I also remixed…
Python Logo

100 Days of Python, Projects 1-14 #100DaysofCode

I've mentioned before about the concept of "always learning".    One of those thing is coding.  I'd like to think I'm actually pretty good at basic to intermediate level coding, though I am certainly not an expert.  I kind of feel like I am at a point where I would definitely like to "level up" my ability a bit.  So I've been working on the #100DaysOfCode Challenge, though a course on Udemy.  Specifically, 100 days of Python, and specifically, this course. I've also been using this as an good excuse to sharpen up my Github skills a bit, so you…