Skip to content

Instantly share code, notes, and snippets.

@MInner
Last active March 30, 2016 21:44
Show Gist options
  • Save MInner/0ecc9b9061d64fd7ef2ba7c9f4e4d494 to your computer and use it in GitHub Desktop.
Save MInner/0ecc9b9061d64fd7ef2ba7c9f4e4d494 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"== Many posts last week\n",
"URL per: wk mth yr\n",
"----------------------------------------------------------- --------- ----- ----\n",
"http://feeds.feedburner.com/kdnuggets-data-mining-analytics 35 60 60\n",
"http://advanceddataanalytics.net/feed/ 10 10 10\n",
"http://nuit-blanche.blogspot.com/feeds/posts/default 8 25 25\n",
"http://feeds.feedburner.com/RBloggers 8 8 8\n",
"http://blogs.technet.com/b/machinelearning/rss.aspx 7 10 10\n",
"http://blog.revolutionanalytics.com/atom.xml 6 10 10\n",
"http://feeds.feedburner.com/AnalyticsVidhya 3 10 10\n",
"http://blog.fastforwardlabs.com/rss 3 3 20\n",
"http://jvns.ca/atom.xml 3 9 20\n",
"http://machinelearningmastery.com/feed/ 3 10 10\n",
"https://www.mapr.com/bigdata.xml 3 9 10\n",
"http://simplystatistics.org/feed/ 3 6 92\n",
"http://www.erogol.com/feed/ 2 4 10\n",
"http://www.dataiku.com/feed.xml 2 5 5\n",
"http://www.datarobot.com/feed/ 2 5 10\n",
"http://blog.dominodatalab.com/rss/ 2 5 15\n",
"http://www.randalolson.com/feed/ 2 6 10\n",
"http://www.lab41.org/feed/ 2 5 5\n",
"http://peadarcoyle.wordpress.com/feed/ 2 4 10\n",
"http://www.willmcginnis.com/feed/ 2 6 10\n",
"... 185 more ommited\n",
"\n",
"== Many posts last month\n",
"URL per: wk mth yr\n",
"----------------------------------------------------------- --------- ----- ----\n",
"http://feeds.feedburner.com/kdnuggets-data-mining-analytics 35 60 60\n",
"http://nuit-blanche.blogspot.com/feeds/posts/default 8 25 25\n",
"http://advanceddataanalytics.net/feed/ 10 10 10\n",
"http://feeds.feedburner.com/AnalyticsVidhya 3 10 10\n",
"http://machinelearningmastery.com/feed/ 3 10 10\n",
"http://blog.revolutionanalytics.com/atom.xml 6 10 10\n",
"http://blogs.technet.com/b/machinelearning/rss.aspx 7 10 10\n",
"http://jvns.ca/atom.xml 3 9 20\n",
"https://www.mapr.com/bigdata.xml 3 9 10\n",
"http://feeds.feedburner.com/RBloggers 8 8 8\n",
"http://multithreaded.stitchfix.com/feed.xml 1 7 10\n",
"http://www.randalolson.com/feed/ 2 6 10\n",
"http://blog.kaggle.com/feed/ 1 6 9\n",
"http://simplystatistics.org/feed/ 3 6 92\n",
"http://www.willmcginnis.com/feed/ 2 6 10\n",
"http://www.dataiku.com/feed.xml 2 5 5\n",
"http://www.datarobot.com/feed/ 2 5 10\n",
"http://blog.dominodatalab.com/rss/ 2 5 15\n",
"http://www.lab41.org/feed/ 2 5 5\n",
"https://mlopezm.wordpress.com/feed/ 0 5 10\n",
"... 185 more ommited\n",
"\n",
"== Our blend (active during last year with up to 4-6 posts per month evenly)\n",
"URL per: wk mth yr\n",
"--------------------------------------------------------- --------- ----- ----\n",
"http://blog.fastforwardlabs.com/rss 3 3 20\n",
"http://www.erogol.com/feed/ 2 4 10\n",
"http://blog.dominodatalab.com/rss/ 2 5 15\n",
"http://peadarcoyle.wordpress.com/feed/ 2 4 10\n",
"http://www.becomingadatascientist.com/feed/ 1 3 10\n",
"http://blog.cloudera.com/blog/category/data-science/feed/ 1 2 10\n",
"http://www.datasciencebowl.com/feed/ 1 4 10\n",
"http://101.datascience.community/feed/ 1 3 10\n",
"http://datasciencevademecum.wordpress.com/feed/ 1 3 10\n",
"http://blog.dato.com/rss.xml 1 2 10\n",
"http://feeds.feedburner.com/predictiveanalyticsworld/GXRy 1 3 10\n",
"http://fa.bianp.net/blog/feed/ 1 2 8\n",
"http://idibon.com/blog/rss 1 4 10\n",
"http://www.inference.vc/rss/ 1 2 15\n",
"http://lazyprogrammer.me/feed/ 1 2 10\n",
"http://allendowney.blogspot.com/feeds/posts/default 1 3 25\n",
"http://www.prooffreader.com/feeds/posts/default 1 2 11\n",
"http://feeds.feedburner.com/Pyimagesearch 1 4 10\n",
"http://blog.aylien.com/rss 1 3 20\n",
"http://blog.thedataincubator.com/feed/ 1 4 10\n",
"http://rinzewind.org/feed-en 1 5 59\n",
"http://datagenetics.com/feed/rss.xml 0 3 50\n",
"http://daynebatten.com/feed/ 0 2 10\n",
"http://efavdb.com/feed/ 0 2 10\n",
"http://erikbern.com/feed/ 0 3 32\n",
"https://medium.com/feed/@adailyventure 0 3 10\n",
"http://iquantny.tumblr.com/rss 0 3 14\n",
"http://www.jeremydjacksonphd.com/?feed=rss2 0 2 8\n",
"http://www.machinalis.com/blog/feeds/rss/ 0 3 20\n",
"http://inverseprobability.com/rss.xml 0 3 39\n",
"http://blog.plot.ly/rss 0 2 20\n",
"http://datasciencedegree.wisconsin.edu/feed/ 0 2 10\n",
"http://colinpriest.com/feed/ 0 3 10\n"
]
}
],
"source": [
"print_summary()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false,
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"fetching: http://www.erogol.com/feed/ [0/205] http://logicx24.github.io/feed.xml [1/205] http://advanceddataanalytics.net/feed/ [2/205] http://blog.smola.org/rss [3/205] http://blog.sense.io/rss/ [4/205] https://medium.com/feed/@D33B [5/205] http://nerds.airbnb.com/feed/ [6/205] http://alexperrier.github.io/feed.xml [7/205] http://feeds.feedburner.com/AnalyticsVidhya [8/205] https://annalyzin.wordpress.com/feed/ [9/205] http://peekaboo-vision.blogspot.com/atom.xml [10/205] http://karpathy.github.io/feed.xml [11/205] http://www.andreykurenkov.com/writing/feed.xml/ [12/205] http://mabrek.github.io/feed.xml [13/205] http://avisingh599.github.io/feed.xml [14/205] http://beautifuldata.net/feed/ [15/205] http://mdbecker.github.io/atom.xml [16/205] http://www.becomingadatascientist.com/feed/ [17/205] http://bigishdata.com/feed/ [18/205] http://snippyhollow.github.io/atom.xml [19/205] http://yerevann.github.io/atom.xml [20/205] http://bugra.github.io/feeds/all.atom.xml [21/205] http://feeds.feedburner.com/carlshan [22/205] https://medium.com/feed/@chris_bour [23/205] https://medium.com/feed/@ctn [24/205] http://blog.cloudera.com/blog/category/data-science/feed/ [25/205] http://colah.github.io/rss.xml [26/205] http://www.datasciencebowl.com/feed/ [27/205] http://www.danielforsyth.me/rss/ [28/205] http://danielhomola.com/feed/ [29/205] http://danielnee.com/?feed=rss2 [30/205] http://datalab.lu/atom.xml [31/205] http://blog.insightdatalabs.com/rss/ [32/205] http://blog.data-miners.com/feeds/posts/default?alt=rss [33/205] http://feeds.feedburner.com/dataminingblog [34/205] http://datamining.typepad.com/data_mining/atom.xml [35/205] http://blog.ethanrosenthal.com/atom.xml [36/205] http://www.dataschool.io/rss/ [37/205] http://101.datascience.community/feed/ [38/205] https://research.facebook.com/blog/rss [39/205] https://www.codementor.io/data-science/tutorial/feed [40/205] http://datasciencevademecum.wordpress.com/feed/ [41/205] http://dataaspirant.wordpress.com/feed/ [42/205] http://blog.okcupid.com/index.php/feed/ [43/205] http://datagenetics.com/feed/rss.xml [44/205] http://www.dataiku.com/feed.xml [45/205] http://feeds.feedburner.com/DataKin [46/205] http://blog.datalook.io/feed/ [47/205] https://www.dataquest.io/blog/atom.xml [48/205] http://www.datarobot.com/feed/ [49/205] http://datascopeanalytics.com/rss [50/205] http://blog.dato.com/rss.xml [51/205] http://mimno.infosci.cornell.edu/b/feed.xml [52/205] http://daynebatten.com/feed/ [53/205] http://deeplearning.net/feed/ [54/205] http://timdettmers.wordpress.com/feed/ [55/205] http://deepdish.io/atom.xml [56/205] http://deliprao.com/feed [57/205] http://blog.dennybritz.com/feed/ [58/205] https://districtdatalabs.silvrback.com/feed [59/205] http://blog.datadive.net/feed/ [60/205] http://blog.dominodatalab.com/rss/ [61/205] http://www.randalolson.com/feed/ [62/205] https://medium.com/feed/@drewconway [63/205] http://dustintran.com/blog/rss/ [64/205] http://blog.echen.me/feeds/all.rss.xml [65/205] http://efavdb.com/feed/ [66/205] http://www.emilio.ferrara.name/feed/ [67/205] http://ianozsvald.com/feed/ [68/205] http://ericjonas.com/archives.html [69/205] http://feeds.feedburner.com/predictiveanalyticsworld/GXRy [70/205] http://erikbern.com/feed/ [71/205] http://www.erinshellman.com/feed/ [72/205] http://fa.bianp.net/blog/feed/ [73/205] http://blog.fastforwardlabs.com/rss [74/205] http://fastml.com/atom.xml [75/205] http://florianhartl.com/feed/ [76/205] http://fullstackml.com/feed/ [77/205] http://www.lab41.org/feed/ [78/205] http://www.chioka.in/feed/ [79/205] http://www.gregreda.com/feeds/all.atom.xml [80/205] https://medium.com/feed/@adailyventure [81/205] http://iamtrask.github.io/feed.xml [82/205] http://iquantny.tumblr.com/rss [83/205] http://idibon.com/blog/rss [84/205] http://www.inference.vc/rss/ [85/205] http://myinspirationinformation.com/feed/ [86/205] https://blogs.princeton.edu/imabandit/feed/ [87/205] http://jtoy.net/atom.xml [88/205] http://www.jeremydjacksonphd.com/?feed=rss2 [89/205] https://jessesw.com/feed.xml [90/205] http://www.joecjr.com/feed/ [91/205] http://www.johnmyleswhite.com/feed/ [92/205] http://joschu.github.io/feed.xml [93/205] http://317070.github.io/feed.xml [94/205] http://www.joyofdata.de/blog/feed/ [95/205] http://jvns.ca/atom.xml [96/205] http://feeds.feedburner.com/kdnuggets-data-mining-analytics [97/205] http://www.kennybastani.com/feeds/posts/default?alt=rss [98/205] http://kldavenport.com/feed/ [99/205] http://korbonits.github.io/feed.xml [100/205] http://bickson.blogspot.com/feeds/posts/default [101/205] https://blog.lateral.io/feed/ [102/205] http://lazyprogrammer.me/feed/ [103/205] https://learnanalyticshere.wordpress.com/feed/ [104/205] http://www.learndatasci.com/feed/ [105/205] http://learningwithdata.com/rss_feed.xml [106/205] http://daoudclarke.github.io/atom.xml [107/205] http://www.louisdorard.com/blog?format=rss [108/205] http://medriscoll.com/rss [109/205] http://www.machinalis.com/blog/feeds/rss/ [110/205] http://charlesmartin14.wordpress.com/feed/ [111/205] http://hunch.net/?feed=rss2 [112/205] http://alexhwoods.com/feed/ [113/205] http://machinelearningmastery.com/feed/ [114/205] http://yaroslavvb.blogspot.com/feeds/posts/default [115/205] https://mlopezm.wordpress.com/feed/ [116/205] http://www.machinedlearnings.com/feeds/posts/default [117/205] https://www.mapr.com/bigdata.xml [118/205] http://www.marekrei.com/blog/feed/ [119/205] http://feeds.feedburner.com/MarginallyInteresting [120/205] http://jeremykun.wordpress.com/feed/ [121/205] http://matthewrocklin.com/blog/atom.xml [122/205] http://melodywolk.com/feed/ [123/205] http://www.micfarris.com/feed/ [124/205] http://mtyka.github.io//feed.xml [125/205] http://minimaxir.com/rss.xml [126/205] http://mirror2image.wordpress.com/feed/ [127/205] http://www.dataphoric.com/feed.xml [128/205] http://mlwave.com/feed/ [129/205] http://peadarcoyle.wordpress.com/feed/ [130/205] http://inverseprobability.com/rss.xml [131/205] http://blog.kaggle.com/feed/ [132/205] http://nuit-blanche.blogspot.com/feeds/posts/default [133/205] http://no2147483647.wordpress.com/feed/ [134/205] https://aimatters.wordpress.com/feed/ [135/205] http://opiateforthemass.es/feed.xml [136/205] http://www.p-value.info/feeds/posts/default [137/205] http://feeds.feedburner.com/typepad/petewarden [138/205] http://blog.plot.ly/rss [139/205] http://allendowney.blogspot.com/feeds/posts/default [140/205] http://www.prooffreader.com/feeds/posts/default [141/205] http://prooffreaderplus.blogspot.ca/feeds/posts/default [142/205] http://www.sumsar.net/atom.xml [143/205] http://feeds.feedburner.com/Pyimagesearch [144/205] http://jakevdp.github.com/atom.xml [145/205] http://feeds.feedburner.com/RBloggers [146/205] http://ramiro.org/notebook/rss.xml [147/205] http://randyzwitch.com/category/data-science/feed/ [148/205] http://rare-technologies.com/feed/ [149/205] http://rayli.net/blog/feed/ [150/205] http://blog.revolutionanalytics.com/atom.xml [151/205] http://rinuboney.github.io/feed.xml [152/205] http://rnduja.github.io/feed.xml [153/205] https://medium.com/feed/@rchang [154/205] http://rocketdatascience.org/?feed=rss2 [155/205] https://medium.com/feed/@samim [156/205] http://seanjtaylor.com/rss [157/205] http://sebastianraschka.com/rss_feed.xml [158/205] http://sebastianruder.com/rss/ [159/205] http://www.nowozin.net/sebastian/blog/feeds/all.atom.xml [160/205] http://blog.shakirm.com/feed/ [161/205] http://simplystatistics.org/feed/ [162/205] http://www.startup.ml/blog?format=RSS [163/205] http://stiglerdiet.com/feeds/all.atom.xml [164/205] http://multithreaded.stitchfix.com/feed.xml [165/205] http://datastories.quora.com/rss [166/205] http://feeds.feedburner.com/StreamHacker [167/205] http://feeds.feedburner.com/advanalytics [168/205] http://blogs.technet.com/b/machinelearning/rss.aspx [169/205] http://technocalifornia.blogspot.com/feeds/posts/default [170/205] http://blog.aylien.com/rss [171/205] http://angrystatistician.blogspot.com/feeds/posts/default [172/205] http://theclevermachine.wordpress.com/feed/ [173/205] http://blog.datacamp.com/feed/ [174/205] http://blog.thedataincubator.com/feed/ [175/205] http://datasciencelab.wordpress.com/feed/ [176/205] http://nicebrain.wordpress.com/feed/ [177/205] http://www.martingoodson.com/rss/ [178/205] https://shapeofdata.wordpress.com/feed/ [179/205] http://www.unofficialgoogledatascience.com/feeds/posts/default [180/205] http://www.computervisionblog.com/feeds/posts/default [181/205] http://trevorstephens.com/rss [182/205] http://treycausey.com/feeds/all.atom.xml [183/205] http://datasciencedegree.wisconsin.edu/feed/ [184/205] http://wellecks.wordpress.com/feed/ [185/205] http://wesmckinney.com/blog/feed/ [186/205] http://twiecki.github.io/atom.xml [187/205] http://www.wildml.com/feed/ [188/205] http://rinzewind.org/feed-en [189/205] http://www.willmcginnis.com/feed/ [190/205] http://www.lyonwj.com/atom.xml [191/205] http://yanirseroussi.com/feed/ [192/205] http://zacstewart.com/feed.xml [193/205] http://blog.yhathq.com/rss.xml [194/205] http://outlace.com/feed.xml [195/205] http://blog.otoro.net/feed/ [196/205] http://shahramabyari.com/feed/ [197/205] www.win-vector.com/blog/feed/ [198/205] http://matpalm.com/blog/feed [199/205] http://rdatamining.wordpress.com/feed/ [200/205] https://codesachin.wordpress.com/feed/ [201/205] http://colinpriest.com/feed/ [202/205] http://edersantana.github.io/feed.xml [203/205] http://tomaugspurger.github.io/feeds/all.rss.xml [204/205] (AttributeError(\"object has no attribute 'updated_parsed'\",), 'http://learningwithdata.com/rss_feed.xml')\n",
"(TypeError('argument must be 9-item sequence, not None',), 'http://ramiro.org/notebook/rss.xml')\n",
"(AttributeError(\"object has no attribute 'updated_parsed'\",), 'http://blog.yhathq.com/rss.xml')\n",
"(AttributeError(\"object has no attribute 'updated_parsed'\",), 'http://matpalm.com/blog/feed')\n",
"\n",
"DONE\n"
]
}
],
"source": [
"from datetime import datetime, timedelta\n",
"import re\n",
"import time\n",
"\n",
"import feedparser\n",
"from tabulate import tabulate\n",
"\n",
"readme = open('README.md').read()\n",
"feed_urls = re.findall('\\[\\(RSS\\)\\] \\((.*?)\\)', readme)\n",
"\n",
"past_week = datetime.now() - timedelta(days=7)\n",
"past_month = datetime.now() - timedelta(days=30)\n",
"past_year = datetime.now() - timedelta(days=365)\n",
"\n",
"data_points = []\n",
"feeds = []\n",
"\n",
"print 'fetching: ', \n",
"for i, url in enumerate(feed_urls):\n",
" print url, '[%d/%d]' % (i, len(feed_urls)),\n",
" feeds.append( (url, feedparser.parse(url) ))\n",
"\n",
"for url, feed in feeds:\n",
" posts_per_week = 0\n",
" posts_per_month = 0\n",
" posts_per_year = 0\n",
" for post in feed.entries:\n",
" try:\n",
" post_delta_time = datetime.fromtimestamp(time.mktime(post.updated_parsed))\n",
" except Exception as err:\n",
" print(err, url)\n",
" break\n",
"\n",
" if post_delta_time >= past_week:\n",
" posts_per_week += 1\n",
"\n",
" if post_delta_time >= past_month:\n",
" posts_per_month += 1\n",
" \n",
" if post_delta_time >= past_year:\n",
" posts_per_year += 1\n",
" \n",
" data_points.append( (url, posts_per_week, posts_per_month, posts_per_year) )\n",
" \n",
"def print_urls(data, n):\n",
" print tabulate(data[:n], headers = ['URL', 'per: wk', 'mth', 'yr'])\n",
" if len(data) > n:\n",
" print '... %d more ommited' % (len(data) - n)\n",
" \n",
"print\n",
"print 'DONE'"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"collapsed": false,
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"== Many posts last week\n",
"URL per: wk mth yr\n",
"----------------------------------------------------------- --------- ----- ----\n",
"http://feeds.feedburner.com/kdnuggets-data-mining-analytics 35 60 60\n",
"http://advanceddataanalytics.net/feed/ 10 10 10\n",
"http://nuit-blanche.blogspot.com/feeds/posts/default 8 25 25\n",
"http://feeds.feedburner.com/RBloggers 8 8 8\n",
"http://blogs.technet.com/b/machinelearning/rss.aspx 7 10 10\n",
"http://blog.revolutionanalytics.com/atom.xml 6 10 10\n",
"http://feeds.feedburner.com/AnalyticsVidhya 3 10 10\n",
"http://blog.fastforwardlabs.com/rss 3 3 20\n",
"http://jvns.ca/atom.xml 3 9 20\n",
"http://machinelearningmastery.com/feed/ 3 10 10\n",
"https://www.mapr.com/bigdata.xml 3 9 10\n",
"http://simplystatistics.org/feed/ 3 6 92\n",
"http://www.erogol.com/feed/ 2 4 10\n",
"http://www.dataiku.com/feed.xml 2 5 5\n",
"http://www.datarobot.com/feed/ 2 5 10\n",
"http://blog.dominodatalab.com/rss/ 2 5 15\n",
"http://www.randalolson.com/feed/ 2 6 10\n",
"http://www.lab41.org/feed/ 2 5 5\n",
"http://peadarcoyle.wordpress.com/feed/ 2 4 10\n",
"http://www.willmcginnis.com/feed/ 2 6 10\n",
"... 185 more ommited\n",
"\n",
"== Many posts last month\n",
"URL per: wk mth yr\n",
"----------------------------------------------------------- --------- ----- ----\n",
"http://feeds.feedburner.com/kdnuggets-data-mining-analytics 35 60 60\n",
"http://nuit-blanche.blogspot.com/feeds/posts/default 8 25 25\n",
"http://advanceddataanalytics.net/feed/ 10 10 10\n",
"http://feeds.feedburner.com/AnalyticsVidhya 3 10 10\n",
"http://machinelearningmastery.com/feed/ 3 10 10\n",
"http://blog.revolutionanalytics.com/atom.xml 6 10 10\n",
"http://blogs.technet.com/b/machinelearning/rss.aspx 7 10 10\n",
"http://jvns.ca/atom.xml 3 9 20\n",
"https://www.mapr.com/bigdata.xml 3 9 10\n",
"http://feeds.feedburner.com/RBloggers 8 8 8\n",
"http://multithreaded.stitchfix.com/feed.xml 1 7 10\n",
"http://www.randalolson.com/feed/ 2 6 10\n",
"http://blog.kaggle.com/feed/ 1 6 9\n",
"http://simplystatistics.org/feed/ 3 6 92\n",
"http://www.willmcginnis.com/feed/ 2 6 10\n",
"http://www.dataiku.com/feed.xml 2 5 5\n",
"http://www.datarobot.com/feed/ 2 5 10\n",
"http://blog.dominodatalab.com/rss/ 2 5 15\n",
"http://www.lab41.org/feed/ 2 5 5\n",
"https://mlopezm.wordpress.com/feed/ 0 5 10\n",
"... 185 more ommited\n",
"\n",
"== Our blend (active during last year with up to 4-6 posts per month evenly)\n",
"URL per: wk mth yr\n",
"--------------------------------------------------------- --------- ----- ----\n",
"http://blog.fastforwardlabs.com/rss 3 3 20\n",
"http://www.erogol.com/feed/ 2 4 10\n",
"http://blog.dominodatalab.com/rss/ 2 5 15\n",
"http://peadarcoyle.wordpress.com/feed/ 2 4 10\n",
"http://www.becomingadatascientist.com/feed/ 1 3 10\n",
"http://blog.cloudera.com/blog/category/data-science/feed/ 1 2 10\n",
"http://www.datasciencebowl.com/feed/ 1 4 10\n",
"http://101.datascience.community/feed/ 1 3 10\n",
"http://datasciencevademecum.wordpress.com/feed/ 1 3 10\n",
"http://blog.dato.com/rss.xml 1 2 10\n",
"http://feeds.feedburner.com/predictiveanalyticsworld/GXRy 1 3 10\n",
"http://fa.bianp.net/blog/feed/ 1 2 8\n",
"http://idibon.com/blog/rss 1 4 10\n",
"http://www.inference.vc/rss/ 1 2 15\n",
"http://lazyprogrammer.me/feed/ 1 2 10\n",
"http://allendowney.blogspot.com/feeds/posts/default 1 3 25\n",
"http://www.prooffreader.com/feeds/posts/default 1 2 11\n",
"http://feeds.feedburner.com/Pyimagesearch 1 4 10\n",
"http://blog.aylien.com/rss 1 3 20\n",
"http://blog.thedataincubator.com/feed/ 1 4 10\n",
"http://rinzewind.org/feed-en 1 5 59\n",
"http://datagenetics.com/feed/rss.xml 0 3 50\n",
"http://daynebatten.com/feed/ 0 2 10\n",
"http://efavdb.com/feed/ 0 2 10\n",
"http://erikbern.com/feed/ 0 3 32\n",
"https://medium.com/feed/@adailyventure 0 3 10\n",
"http://iquantny.tumblr.com/rss 0 3 14\n",
"http://www.jeremydjacksonphd.com/?feed=rss2 0 2 8\n",
"http://www.machinalis.com/blog/feeds/rss/ 0 3 20\n",
"http://inverseprobability.com/rss.xml 0 3 39\n",
"http://blog.plot.ly/rss 0 2 20\n",
"http://datasciencedegree.wisconsin.edu/feed/ 0 2 10\n",
"http://colinpriest.com/feed/ 0 3 10\n"
]
}
],
"source": [
"def print_summary():\n",
" print '== Many posts last week'\n",
" print_urls(sorted(data_points, key = itemgetter(1), reverse=True), 20)\n",
"\n",
" print\n",
"\n",
" print '== Many posts last month'\n",
" print_urls(sorted(data_points, key = itemgetter(2), reverse=True), 20)\n",
"\n",
" print\n",
"\n",
" print '== Our blend (active during last year with up to 4-6 posts per month evenly)'\n",
" print_urls(sorted(filter(lambda x: 1 < x[2] < 7 and 5 < x[3] < 90 and float(x[3])/x[2] > 2, data_points), \n",
" key = lambda x: x[1], reverse=True),\n",
" n=50)\n",
" \n",
"print_summary()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment