wtfmyip.py - Test proxy or grab local IP


SUBMITTED BY: Guest

DATE: Oct. 8, 2014, 7:01 a.m.

FORMAT: Text only

SIZE: 509 Bytes

HITS: 1228

  1. #!/usr/bin/env python
  2. #install python-tk on n00buntu
  3. #apt-get install python-nltk
  4. #Really fucking simple script for obtaining your external IP,
  5. #or testing tor through proxychains or torify!
  6. #I can't keep coding without BTC: 1JmS81r4n11WmfUUKJfKUfp7Weym6p7iqN
  7. import nltk
  8. from urllib import urlopen
  9. html = urlopen(url).read()
  10. raw = nltk.clean_html(html)
  11. print 'External IP Address: ' + (raw)
  12. #EOF