Skip to content

Instantly share code, notes, and snippets.

@johanneskoch
Last active December 30, 2015 00:19
Show Gist options
  • Select an option

  • Save johanneskoch/7748779 to your computer and use it in GitHub Desktop.

Select an option

Save johanneskoch/7748779 to your computer and use it in GitHub Desktop.
A quick way to stay up to date on how inflated the reporting on Spiegel Online is at any given moment. Any help in getting it down to a tweetable size is greatly appreciated.
import re,requests as r
s=re.sub(r'<.+?>','',r.get('http://spon.de').text).lower()
for p in ['extrem','massiv','dramatisch']:print s.count(p),p
@johanneskoch
Copy link
Author

Inspired by thaDude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment