Author Topic: [Python] Writing to form to scrape email.  (Read 456 times)

0 Members and 1 Guest are viewing this topic.

Offline shimomura

  • Peasant
  • *
  • Posts: 57
  • Cookies: 0
    • View Profile
    • Shanaynay
[Python] Writing to form to scrape email.
« on: June 13, 2014, 11:02:59 pm »
I was hoping to create a script that reads my emails. In order to sign in is there anyway I can write text to the username and password using raw_input variables as the credentials then login? If you guys can point me in the right direction to login I'm pretty sure I could write a decent scraper to retrieve the emails themselves. Thanks in advance. This is the page I'm trying to login to -> http://mail.floralsystems.com
Who gives a fuck what color the dress is...

Offline kenjoe41

  • Symphorophiliac Programmer
  • Administrator
  • Baron
  • *
  • Posts: 990
  • Cookies: 224
    • View Profile
Re: [Python] Writing to form to scrape email.
« Reply #1 on: June 13, 2014, 11:21:29 pm »
Just wondering why not use a configuration file. Oh, that would be a bad idea since it will expose your credentials. Then just do command line args.
If you store your input in a variable, just pass it to the stream and there goes you creds to the whole world.
If you can't explain it to a 6 year old, you don't understand it yourself.
http://upload.alpha.evilzone.org/index.php?page=img&img=GwkGGneGR7Pl222zVGmNTjerkhkYNGtBuiYXkpyNv4ScOAWQu0-Y8[<NgGw/hsq]>EvbQrOrousk[/img]

Offline shimomura

  • Peasant
  • *
  • Posts: 57
  • Cookies: 0
    • View Profile
    • Shanaynay
Re: [Python] Writing to form to scrape email.
« Reply #2 on: June 14, 2014, 01:21:55 am »
That's why I said the variable would be a raw_input.
Who gives a fuck what color the dress is...

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: [Python] Writing to form to scrape email.
« Reply #3 on: June 14, 2014, 04:16:50 am »
Do they have a POP3 or SMTP address you can use? Instead of using the web client, they should have settings you would use in something like outlook or Thunderbird mail clients. Use those settings and have python log into your email and retrieve it that way. It has built-in libs just for that kind of thing, no need to go through their web gui, just use python to log into the mail servers and skip the middle man.
>>>import this
-----------------------------