Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Paste Description for Brian Mingus

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

Brian Mingus
Sunday, January 7th, 2007 at 1:38:31pm MST 

  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

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not 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. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
fantasy-obligation