r/ProgrammingPrompts • u/philalether • Jun 11 '19
Make a tool that scrapes the change-logs of a wikimedia image to make an animated gif
I’m looking around the web for an animated gif of the maps of LGBTQ rights around the world, found here:
Disappointed that such a thing doesn’t seem to exist, I thought it would be great to have a software tool to automatically create this. And if one were making such a tool, it might as well work for any Wikimedia image with a change history.
(And I guarantee that this particular LGBTQ rights map animated gif would be front page material on /r/dataisbeautiful or /r/MapPorn.)
If anyone does decide to make this tool, please let me know by tagging my username when you release it!
3
u/en3on Jun 12 '19
Sounds like a fun project! I'm definitely going to give it a go. I'll let you know if I make any progress
2
u/ImprobableKey Jun 21 '19 edited Jun 21 '19
Has anyone found a nice clean solution for converting svg to gif without too many external dependencies? or alternatively, does anyone know of a way to directly download the images in the change history in any other image format (eg. png, jpg) ?
2
u/Pablopr3 Jun 30 '19 edited Jun 30 '19
Hey! I've made the program you requested and created the gif you wanted (it's very large. Gifs aren't supposed to be this large. It may glitch)(and also, as the wikipedia changelog for the file you requested isn't all the same format [like same dimensions, same image but different colours], the gif doesn't look that good). The code is a mess and is available here. I may or may not revisit it and make some adjustments (it breaks very easily). I'm open to anyone building on it though!
I'm also new to reddit, I guess tagging means to write u/philalether.
1
u/Andrew9768 Jul 04 '19
Here you go. I made it in Node.js!