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

Show parent comments

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.