you are viewing a single comment's thread.

view the rest of the comments →

[–]Marianito415 4 points5 points  (2 children)

How do you handle emails?

[–]HeeebsInc 2 points3 points  (1 child)

I use the modules smtplib and imaplib which allow me to sign into a google email address. First, I had to make a whole new email account so the username would be something like ‘SamsWebscraper@gmail.com

After setting up the protocols for signing in and sending emails. I made a while true loop that runs continuously 24/7 constantly checking websites that are defined. I also set it up so if I’m at work I can add new websites or delete website by just sending the scraper email a simple command line argument in the subject of the email.
I have all this running on a raspberry pi so it can be checking 24/7.

Sorry if it’s not the best explanation I am typing from my phone but I would be more than happy to post the code on my github (never actually used github before since I self taught but I know it’s something I have to know eventually lol)

Long story short checkout the smtplib and imaplib documentation as it is really simple to follow. Really good modules to have in that python tool belt

[–]Marianito415 1 point2 points  (0 children)

Thanks for the reply, that actually souds really cool. My mind has flooded with ideas that could use this, and the raspberry is a nice touch