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

53

u/taiguy86 Feb 28 '20

Next step maybe take specific fields you are tracking, put it into a database, and run over a ton of urls on a daily basis, and build some analytics to see which items are popping, etc

0

u/[deleted] Feb 28 '20

[deleted]

10

u/SenKaiten Feb 28 '20

what if i do though? ☜☜

0

u/[deleted] Feb 28 '20

[deleted]

2

u/[deleted] Feb 28 '20

This is the definition of the modern stock market though. It's what caused the crash in 2008.

Bots programmed with algorithms that detect the slightest changes in trading volume and try to predict what is going to happen, then buying or selling based on that.

4

u/take_it_easy_buddy Feb 28 '20

COVID-19 intensifies

3

u/[deleted] Feb 28 '20

let's hold hands while we skip over to wallstreetbets

3

u/hamsumwich Feb 28 '20

While trading bots are an issue that can cause sudden market dips, they were not the cause for the '08 housing market crash. The cause was an unregulated derivative mortgage loans that were sliced and diced and repackaged together. Absolutely risky loans were packaged with solid loans. People were approved for for $500k loans, even though their income was seasonal fruit and vegetables pickers. Adult entertainment strippers held several mortgages for more than one home. It was criminal what the banking industry did, and yet no one went to jail for it. A great book to better understand the crash is The Big Short by Michael Lewis. The movie based on the book is good, but unsurprisingly not as deep as the source material.

1

u/ChemiluminescentGum Feb 28 '20

That’s not what happened in 2008. T may have been a minor contributing factor, but far from the cause.

1

u/[deleted] Feb 28 '20

I understand it's a super simplification of the problem and the meltdown that occurred, but it was a big cause of the selloffs that happened and many other "blips" in the market, algorithms gone haywire trying to game the system. In the end was bad choices made by humans.

2

u/ChemiluminescentGum Feb 29 '20

It would have been more accurate to say the 1987 crash was caused by auto trading because that occurred when the market went down and tripped massive stop-loss orders and then the problem cascaded across the market.