This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import imaplib, email, email.parser, email.policy | |
| import html2text | |
| import pprint, sys | |
| # | |
| # Utilities for Debug | |
| # | |
| pp = pprint.PrettyPrinter(indent=4, width=80) | |
| def myprint(str): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| r = requests.get(r'http://jsonip.com') | |
| ip= r.json()['ip'] | |
| print 'Your IP is', ip |