a pastebin project

Paste Description for Brian Mingus

See http://blog.outer-court.com/forum/82021.html

Brian Mingus

  1. #!/usr/bin/python
  2. #Print out obfuscated slashdot email addresses from their most commented on story
  3.  
  4. from BeautifulSoup import BeautifulSoup
  5. import urllib2, re
  6. opener = urllib2.build_opener()
  7. opener.addheaders = [('User-agent', 'Mozilla/5.0')]
  8. slashdot = opener.open('http://politics.slashdot.org/politics/04/11/03/1637232.shtml')
  9. slashdot = BeautifulSoup(slashdot.read())
  10. addresses = [address.string for address in slashdot.findAll(attrs={'href':re.compile('mailto.*')})]
  11.  
  12. for i in range(len(addresses)):
  13.     print addresses[i]

advertising

Create a Paste

Please enter your new post below (or upload a file instead):





Please note that information posted here will not expire by default. If you want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords.

worth-right