Last active
December 30, 2015 00:19
-
-
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.
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 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inspired by thaDude