Can this actually be done? Like checking if my browser is logged in and if so, scraw some of my emails? Or does hotmail prevent you from scraping your mails?
Asked
Active
Viewed 736 times
0
-
It would be a huge pain in the butt. Just retrieve your emails through POP or IMAP – pvg Mar 30 '17 at 19:03
-
I actually want to find out if it's possible to have a website that visits hotmail on the background using python and scrape some data if the current client is logged in. I don't have any blackhat intentions, just curious. – Jen Jensen Mar 30 '17 at 19:07
-
http://stackoverflow.com/questions/13287490/is-there-a-way-to-use-phantomjs-in-python – pvg Mar 30 '17 at 19:29
-
Take a look at that answer. There are a bunch of technologies for controlling a browser instance through python. – pvg Mar 30 '17 at 19:30
1 Answers
0
Yes actually very easily.
All you have to do is connect to a POP or IMAP(gmail,hotmail) and then manipulate data however you want.import smtplib
Here's a link documentation --- Stackoverflow question
--- POP -email --- Gmail
You can use regular expressions if you want to find something specific
Python RE-Regular Expressions
I don't know how would you check if you're already logged in, there isn't an obvious way to tell. Of course it could be done but in some weird manner.
-
-
I actually want to find out if it's possible to have a website that visits hotmail on the background using python and scrape some data if the current client is logged in. I don't have any blackhat intentions, just curious. – Jen Jensen Mar 30 '17 at 19:08
-
-
Yeah, that's a much easier task(I think) making a google chrome extension would be perfect. – innicoder Mar 30 '17 at 19:12
-
You don't use SMTP to retrieve mails, that's for sending. Either you use POP or IMAP. – Matteo Italia Mar 30 '17 at 19:27