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

2

u/steno5 Feb 28 '20

Congrats! I am also learning using that book. Have finished Part I and continuing. Hope to share same story like this soon.

1

u/Knitcap_ Feb 28 '20

What are you learning now that you've finished the book? I'll be in your shoes soon and am unsure of what to do after.

1

u/steno5 Feb 29 '20

No, I have only finished the basics part of the book (Part I). Now I am practising what I have learnt with some workbooks out there, like:

- https://www.amazon.com/Python-Example-Learning-Program-Challenges/dp/1108716830
- https://www.amazon.com/Python-Workbook-Introduction-Exercises-Solutions/dp/3030188728/ref=sr_1_1?crid=TBKQWM2L1QF1&keywords=the+python+workbook&qid=1582937410&s=books&sprefix=the+python+w%2Cstripbooks-intl-ship%2C352&sr=1-1

I find both these two workbooks useful. After that I will continue with Part II and the rest of the "Automate the boring stuff with Python"

1

u/Knitcap_ Feb 29 '20

Ah, I see. Personally I try to go by the book as much as possible and build programs for work as I go. I currently have a bottom of the corporate chain job that consists mostly of repetitive tasks and I've already automated a handful of them. One of which was a program that moved ~12000 files out from one folder and into another that took me an hour to make, buy probably saves several days worth of doing a mind numbing task. That was one of the easier ones I made, but the one that impressed my boss the most.

I'm trying to get to a working proficiency with python asap so I'm trying to go through the learning process as fast as I can before the bills catch up to me.

1

u/steno5 Mar 06 '20

I see... I once used Excel VBA to automate the process of creating and printing the bank remittance orders and felt quite good about it. Now I'm trying to learn python to extract data from companies 's financial statements for our data analysis. In my country, all companies submit pdf files with scanned images in them, making us data analysts a bit hard to process the data.

2

u/Knitcap_ Mar 06 '20

I know the feeling, I often deal with scanned images of certificates that need to be read manually for expiration dates. I suggest you try pytesseract to read pictures. In my experience it works flawlessly as long as the image quality is decent. Saved me a substantial amount of work so far.

1

u/steno5 Mar 07 '20

Oh, thanks. I have been trying with pdftabextract but not yet successful. Thanks for your suggestion.