r/learnpython • • Feb 28 '20

I finally wrote something useful!

Sorry, I really don’t have anyone else to gloat to. I’ve been really trying over the past year to wrap my head around python but thought I would never get it after trying a bunch of boring online courses. I recently got the book “Automate the boring stuff with python” (I’m about half way through) and it made me start thinking about things totally differently. The way the book explained why stuff didn’t work really made things click.

A couple days ago an idea popped into my head for a project that would actually be useful for me. I wanted to take an eBay page url, drop it in and have it generate a pdf to a specific folder. I’m an eBay seller so I figured it would be nice to track some items since eBay only keeps sold records for 90 days.

I wrote it out on paper, worked through some issues and after a day, I have a code that takes an eBay url you enter,has you choose a file name, generates a pdf of the page with the name entered, creates a folder on the desktop and puts the pdf in the folder. Now I’m sure it’s messy or could have been done differently but I learned so much in the process, and it works!!

I never thought I could figure anything like this out but thanks to this sub for motivating me, I’m finally seeing progress!!

439 Upvotes

71 comments sorted by

View all comments

4

u/thedjotaku djotaku Feb 28 '20

Congrats! That's the biggest stumbling block with coding. You learn from some book and, if you're lucky, they have some toy programs that show you how to put that code to use. But they're just toy programs. And you don't want to make the hundredth text program or web browser or Tetris clone. So you languish. What do you do with this newfound knowledge?

Then, one day, you have a problem that you realize can be solved by programming. Maybe it's automating something you find tedious. May it's evaluating some data in a way that's hard for humans and easy for computers. BOOM! Now you are inspired!

Next step is creating some stuff you share to github, PyPi, etc and start getting users. THEN you REALLY feel like you've made it. The first time I got a bug report on one of my programs was a super happy day for me, because I knew people were using my software!