Skip to content

Instantly share code, notes, and snippets.

@a-warner
Last active August 29, 2015 14:05
Show Gist options
  • Save a-warner/60afe3ffdd0872719247 to your computer and use it in GitHub Desktop.
Save a-warner/60afe3ffdd0872719247 to your computer and use it in GitHub Desktop.
require 'nokogiri'
require 'octokit'
require 'open-uri'
github = Octokit::Client.new(:access_token => ENV['GH_TOKEN'])
doc = Nokogiri::HTML.fragment(open('https://github.com/imathis/octopress/wiki/3rd-Party-Octopress-Themes').read)
doc.search('table tr td:first a:first').map do |a|
a['href'] =~ %r{https?://github.com/([^/]+)/([^?/]+)(\?|$|/)} && [$1, $2]
end.compact.map do |owner, repo_name|
begin
github.repository(:owner => owner, :name => repo_name)
rescue Octokit::NotFound
end
end.compact.sort_by { |repo| -repo.stargazers_count }.each do |repo|
puts "#{repo.html_url} - #{repo.stargazers_count}"
end
@a-warner
Copy link
Author

As of 08/13/2014, here are the results from running this script:

https://github.com/shashankmehta/greyshade - 491
https://github.com/tommy351/Octopress-Theme-Slash - 328
https://github.com/alexgaribay/octoflat - 169
https://github.com/sevenadrian/foxslide - 130
https://github.com/lucaslew/whitespace - 128
https://github.com/macjasp/cleanpress - 125
https://github.com/mikeclarke/villainy-octopress-theme - 119
https://github.com/amelandri/darkstripes - 118
https://github.com/bkutil/bootstrap-theme - 104
https://github.com/panks/fabric - 95
https://github.com/kAworu/octostrap3 - 88
https://github.com/coogie/oscailte - 78
https://github.com/barmstrong/octopress-bootstrap - 77
https://github.com/rastersize/BlogTheme - 76
https://github.com/elisehein/Pageturner - 74
https://github.com/sevenadrian/MediumFox - 68
https://github.com/alexharris/octopress-flat - 62
https://github.com/bijumon/oct2 - 61
https://github.com/vladigleba/readify - 54
https://github.com/ivanjovanovic/ji-octopress-theme - 48
https://github.com/mjhea0/whiterspace - 46
https://github.com/iwinux/compbits - 39
https://github.com/roberto/oct2-orange - 39
https://github.com/alexharris/calm-shallow-sea - 33
https://github.com/tcnksm/mnmlpress - 30
https://github.com/erikzaadi/solarized-octopress-theme - 30
https://github.com/qingwang/octopress-theme-yinyang - 27
https://github.com/tommy351/octopress-theme-phase - 22
https://github.com/rezajatnika/greyjoy - 19
https://github.com/TheChymera/Koenigspress - 19
https://github.com/kui/k-ui-octopress-theme - 18
https://github.com/hyfather/reynard - 17
https://github.com/tlvince/leanpress - 17
https://github.com/ioveracker/mnml - 17
https://github.com/SamWhited/typo - 16
https://github.com/ryandeussing/octopress-minimalist - 14
https://github.com/wallace/justin-kelly-theme - 13
https://github.com/johnkeith/boldandblue - 11
https://github.com/mjhea0/noLogo - 10
https://github.com/gluttony/object-octopress-theme - 10
https://github.com/chinghanho/octopress-theme-dropbot - 9
https://github.com/geeksoflondon/octopress-design - 9
https://github.com/stchangg/mathy - 8
https://github.com/gehaxelt/CSS-WhiteLake - 7
https://github.com/yang-wei/simplified - 7
https://github.com/Z1MM32M4N/hpstr-theme - 6
https://github.com/dotkrnl/dotmin - 6
https://github.com/annejohnson/octofound - 6
https://github.com/mjhea0/octoplate - 6
https://github.com/libingcun/libingcun-octopress-theme - 5
https://github.com/johnkeith/sofreshandsogreen - 4
https://github.com/fapper/classic-martinb - 2
https://github.com/lijinma/jin - 2
https://github.com/maverick2000/octollax - 1
https://github.com/chuguixin/simple - 1
https://github.com/haya14busa/mjolvim-octotheme - 1
https://github.com/lmm/SmallFox - 1
https://github.com/podabed/default - 1
https://github.com/midnightSuyama/respectMattt - 1
https://github.com/syui/syui.github.io - 0
https://github.com/deakolt/octoflow - 0
https://github.com/rcmdnk/octogray - 0

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