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

14

u/emmascorp Feb 28 '20

Congrats! I barely started to learn python! Youve only read one book?

29

u/Ecto-1A Feb 28 '20

Keep at it! The thing that held me back was not having any ideas for something I could write that was practical for my life. Find something you are doing every day and try to find a way to do it quicker with a code. Find a code where you know the final outcome, look through the code and try to figure out what each part is doing and try to figure out what’s going on when that part executes, I found this the most fun way to really get started

3

u/emmascorp Feb 28 '20

Ok thanks for the advice!

2

u/Knitcap_ Feb 28 '20

The further into Automate the Boring Stuff you go the fewer practice projects get laid out for you, but also the more project ideas it gives you. Sounds like it's right up your alley.

1

u/oblivion-age Feb 28 '20

I work at a warehouse now and boxes get scanned on a line, the software goes retarded if you send one out of order so then you have to force them, but there are 2 lines running simultaneously and if one is backed up with a lower box number I run the higher ones through. Then when the lower ones run finally they show as being out of order, which they are but I kind of wish the software was a little more intelligent to realize the fact that I'm forcing the others and that essentially it is all in order at the end. Hard to explain I guess and it isn't something I can fix, but I see the weakness.

2

u/Ecto-1A Feb 28 '20

Really doesn’t seem too difficult to just have the list re-sort to the proper numerical order every few minutes and at least minimize the amount of times thing go out of sync. Or some sort of scan buffer time of like 5 min or whatever before it starts complaining about order. I don’t know, I’m new here to and conceptually this is what makes sense to me.

1

u/oblivion-age Feb 28 '20

Yeah, the problem is one line is coming from QC and they are slower, I get what you're saying. What I was thinking was for the system to say

"oh hey there is #45, where is #42? Oh it got routed to QC and the last one they got was behind on time from the others, so we will reorder once that gets sent through, but for now let's pass the rest on so production can continue."

I think this is how a programmer thinks, maybe not, but would like to think so! I'm new also and I am not sure what type of language this would all be dealing with, I'm sure there is some sort of SQL involved but not sure, it is all networked.

Edit: where I see the problem for me is where I am, at the end of the line when boxes are being palletized, order shouldn't matter because each run is a whole order, like hundreds of boxes.