Last active
August 29, 2015 14:09
-
-
Save leonsas/9c4387ff71dd0b564366 to your computer and use it in GitHub Desktop.
Wiki to png
This file contains 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
CITIES = [ | |
('Chicago', 'chicago'), | |
('New_York_City', 'newyork'), | |
('Los_Angeles', 'losangeles'), | |
('Paris', 'paris'), | |
('Tokyo', 'tokyo'), | |
] | |
command_str =""" | |
/Users/leonsas/projects/temp/capturejs/capture.js --uri http://en.wikipedia.org/wiki/%s \ | |
--viewportsize 11850x1400 \ | |
--zoomfactor 3 \ | |
--javascript-file /Users/leonsas/Dropbox/FALL2014/DSGN395/WikiLinks/injector.js \ | |
--output '%s/%s.png' | |
""" | |
for endpoint, name in CITIES: | |
print command_str % (endpoint, name, name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment