Last active
December 30, 2015 13:39
-
-
Save georgestephanis/7837501 to your computer and use it in GitHub Desktop.
A script that will download all the gifs that you've loaded into boom, and save them to the directory.
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
{ | |
"lists": [ | |
{ | |
"gifs": [ | |
{ | |
"popcorn": "http://i.imgur.com/GtSUTuh.gif" | |
}, | |
{ | |
"nopower": "http://media.tumblr.com/ae9584a30e65241bedd2b77a3734cb33/tumblr_inline_msb6ldavYC1qz4rgp.gif" | |
}, | |
{ | |
"brainless": "http://media.tumblr.com/d486a5f8485bb10a32a5c89822045147/tumblr_inline_mrcdzz46So1qz4rgp.gif" | |
}, | |
{ | |
"scarylappy": "http://i.imgur.com/gbTehJl.gif" | |
}, | |
{ | |
"terror": "http://media.tumblr.com/8c22966dd7590b6878e7e84dc3adaed3/tumblr_inline_msqyz55Pvc1qz4rgp.gif" | |
}, | |
{ | |
"meh": "http://i.imgur.com/zH482fC.gif" | |
}, | |
{ | |
"giveittome": "http://i.imgur.com/ePlXDAL.gif" | |
}, | |
{ | |
"runaway": "http://media.tumblr.com/d93878e7a28174a833b73ef45a34efbf/tumblr_inline_mtuqmqlgiD1raprkq.gif" | |
}, | |
{ | |
"lolnope": "http://media.tumblr.com/ad0af459b54cb2cb38885d94695d3f18/tumblr_inline_mtuqawVTXO1raprkq.gif" | |
}, | |
{ | |
"sad": "http://media.tumblr.com/441563bd1b96b2aeecaab1c889f39a78/tumblr_inline_mufg5eAm9Y1raprkq.gif" | |
}, | |
{ | |
"frustration": "http://i.imgur.com/QjpmQPU.gif" | |
}, | |
{ | |
"trap": "http://media.tumblr.com/42cf1d61acd40b5e167db42bfb8f0608/tumblr_inline_mtuqusUr351raprkq.gif" | |
}, | |
{ | |
"eventually": "http://media.tumblr.com/0fb7e245b65446aa3fd3ce26f57a1564/tumblr_inline_mufkhljUKC1raprkq.gif" | |
}, | |
{ | |
"sobbing": "http://media.tumblr.com/45f0668fbf91495182a19cddd909b375/tumblr_inline_mufju8Xd751raprkq.gif" | |
}, | |
{ | |
"ohfuck": "http://i.imgur.com/vhuRHaW.gif" | |
}, | |
{ | |
"lemmings": "http://media.tumblr.com/ed8cf5db7a9422df5913f9fb1266a80b/tumblr_inline_mvcj2iQdOG1raprkq.gif" | |
}, | |
{ | |
"dealwiththis": "http://i.imgur.com/1pkNeOy.gif" | |
}, | |
{ | |
"anonymous": "http://i.imgur.com/MdvIXKa.gif" | |
}, | |
{ | |
"free": "http://media.tumblr.com/11a920dc1527dfe7eab6d39fd76144fe/tumblr_inline_mx5mfttRHM1raprkq.gif" | |
}, | |
{ | |
"facepalm": "http://media.tumblr.com/93aa80b795eab73e4691e2320b601436/tumblr_inline_mx5mx8ErBr1raprkq.gif" | |
}, | |
{ | |
"timevortex": "http://media.tumblr.com/c9108141b14d2d03c003e954731e296e/tumblr_inline_mx5mbkqrQZ1raprkq.gif" | |
}, | |
{ | |
"doesntfit": "http://i.imgur.com/Ul6Rij3.gif" | |
}, | |
{ | |
"sadno": "http://media.tumblr.com/27d7455f976fa848546cd1b48f02cdc3/tumblr_inline_mwslpu15cj1raprkq.gif" | |
}, | |
{ | |
"moneyshower": "http://media.tumblr.com/c10fa9ccf5a19901113b0bd611452604/tumblr_inline_mwslkbsYO71raprkq.gif" | |
}, | |
{ | |
"ifailedyou": "http://2.bp.blogspot.com/-uhRaR7F34Qs/Um414DjRvvI/AAAAAAAAOg4/CxF_lcxwWCc/s1600/you-trusted-me.gif" | |
}, | |
{ | |
"huhwha": "http://i.imgur.com/M2UgvHV.gif" | |
}, | |
{ | |
"turniton": "http://i.imgur.com/D3MNxtx.gif" | |
}, | |
{ | |
"popcorn3": "http://i.imgur.com/cz3K8Lf.gif" | |
}, | |
{ | |
"popcorn2": "http://i.imgur.com/xblF4.gif" | |
}, | |
{ | |
"no-cosby": "http://i.imgur.com/3U2rE5A.gif" | |
}, | |
{ | |
"getthatimageoutofmyhead": "http://i.imgur.com/Z5IKU.gif" | |
}, | |
{ | |
"excited": "http://i.imgur.com/wZcmV7n.gif" | |
}, | |
{ | |
"mmmyeahno": "http://i.imgur.com/GLQjF.gif" | |
}, | |
{ | |
"lalala": "http://i.imgur.com/JRQVzR0.jpg" | |
}, | |
{ | |
"thatone": "http://i.imgur.com/3NSyN5s.gif" | |
}, | |
{ | |
"surroundedbyassholes": "http://i.imgur.com/y4DdggY.gif" | |
}, | |
{ | |
"youaredead": "http://i.imgur.com/9PKUAVa.gif" | |
}, | |
{ | |
"party": "http://i.minus.com/ibofJZlKYf8BCP.gif" | |
}, | |
{ | |
"hobbitfuckoff": "http://i.imgur.com/BDSlNYf.gif" | |
}, | |
{ | |
"maybeimagod": "http://i.imgur.com/umL5oWK.gif" | |
}, | |
{ | |
"facepalmloki": "http://i.imgur.com/nAvBFMi.gif" | |
}, | |
{ | |
"iknowwhatisaid": "http://i.imgur.com/HblbVqY.gif" | |
}, | |
{ | |
"solidarity": "http://i.imgur.com/pCbkJOT.gif" | |
}, | |
{ | |
"fuckyeah": "http://i.imgur.com/sGsuStK.gif" | |
}, | |
{ | |
"realization": "http://i.imgur.com/sJmWEDz.gif" | |
}, | |
{ | |
"broken": "http://i.imgur.com/kudeAuh.gif" | |
}, | |
{ | |
"noanswers": "http://i.imgur.com/KnPNzWn.gif" | |
}, | |
{ | |
"yousawnothing": "http://i.imgur.com/R84dqcq.gif" | |
}, | |
{ | |
"ivolunteer": "http://i.imgur.com/x2LQjbq.gif" | |
}, | |
{ | |
"notgreat": "http://i.imgur.com/AD7Lvzh.jpg" | |
}, | |
{ | |
"omg": "http://i.imgur.com/jPCs7aZ.gif" | |
}, | |
{ | |
"omgstars": "http://i.imgur.com/jPCs7aZ.gif" | |
}, | |
{ | |
"areyounotentertained": "http://i.imgur.com/ZWkvDnW.gif" | |
}, | |
{ | |
"justyouropinion": "http://i.minus.com/iVNUFjedJF6fX.gif" | |
}, | |
{ | |
"sup": "http://i.imgur.com/pB3Qneq.gif" | |
}, | |
{ | |
"dontgiveashit": "http://i.imgur.com/tCPZqFI.gif" | |
}, | |
{ | |
"weredonewhenisayweredone": "http://i.imgur.com/lRSKdok.gif" | |
}, | |
{ | |
"liquor": "http://i.imgur.com/z8rpRmm.gif" | |
}, | |
{ | |
"stims": "http://i.imgur.com/m9P3ktQ.gif" | |
}, | |
{ | |
"whogivesashit": "http://i.imgur.com/0grg3wt.gif" | |
}, | |
{ | |
"stabbity": "http://i.imgur.com/59RGxlX.gif" | |
}, | |
{ | |
"bullshit": "http://i.imgur.com/GL2XTc5.gif" | |
}, | |
{ | |
"facts": "http://i.imgur.com/vrTgcVp.gif" | |
}, | |
{ | |
"slimyyetsatisfying": "http://i.imgur.com/rDCk40r.gif" | |
}, | |
{ | |
"boldstrategy": "http://i.imgur.com/ROIklUy.gif" | |
}, | |
{ | |
"unexpected": "http://i.imgur.com/IFVlUSW.gif" | |
}, | |
{ | |
"dumb": "http://i.imgur.com/Amruoc4.gif" | |
}, | |
{ | |
"dontgiveafuck": "http://i.imgur.com/2zrgSx1.gif" | |
}, | |
{ | |
"ifuckedup": "http://www.reactiongifs.us/wp-content/uploads/2013/08/i_fucked_up_will_ferrell.gif" | |
}, | |
{ | |
"regret": "http://i.imgur.com/4mhwSqY.gif" | |
}, | |
{ | |
"no": "http://i.imgur.com/dNbLrFj.gif" | |
}, | |
{ | |
"sadcelebration": "http://i.imgur.com/EK5QCQR.gif" | |
}, | |
{ | |
"iownyou": "http://i.imgur.com/5SLvbAM.gif" | |
}, | |
{ | |
"sonofabitch": "http://i.imgur.com/fa0XAhJ.gif" | |
}, | |
{ | |
"headdesk": "http://www.reactiongifs.com/wp-content/uploads/2013/12/mad.gif" | |
}, | |
{ | |
"laugh": "http://i.imgur.com/uwa7H4Z.gif" | |
}, | |
{ | |
"cheer": "http://www.reactiongifs.com/wp-content/uploads/2013/11/stoked.gif" | |
}, | |
{ | |
"shitshitshit": "http://i.imgur.com/CCCY5LG.gif" | |
}, | |
{ | |
"narroweyes": "http://i.imgur.com/DZy61tU.gif" | |
}, | |
{ | |
"youreright": "http://i.imgur.com/7ienzSY.gif" | |
}, | |
{ | |
"fuckyou": "http://i.imgur.com/xaRwF74.gif" | |
}, | |
{ | |
"highfives": "http://i.imgur.com/7TYIrla.gif" | |
}, | |
{ | |
"really": "http://i.imgur.com/Gz0zin3.gif" | |
}, | |
{ | |
"bringhimin": "http://i.imgur.com/HUvsoJR.gif" | |
}, | |
{ | |
"thatsimpossible": "http://i.imgur.com/cRaR2VI.gif" | |
}, | |
{ | |
"hobbitfuckyou": "http://i.imgur.com/aoUeWL3.gif" | |
}, | |
{ | |
"nothingtoseehere": "http://i.imgur.com/O7Z4TQh.gif" | |
}, | |
{ | |
"godfuckingdammitt": "http://i.imgur.com/xDqBIIp.gif" | |
}, | |
{ | |
"crash": "http://i.imgur.com/iLR1F2p.gif" | |
}, | |
{ | |
"ohboy": "http://i.imgur.com/AaK976d.gif" | |
}, | |
{ | |
"doesntmakesense": "http://i.imgur.com/CE5uC.jpg" | |
}, | |
{ | |
"shouldnthavesaidthat": "http://i.imgur.com/MpkGhIe.gif" | |
}, | |
{ | |
"lucille": "http://i.imgur.com/r0XKFEd.gif" | |
}, | |
{ | |
"wtf": "http://i.imgur.com/3uqentZ.gif" | |
}, | |
{ | |
"clapping": "http://i.imgur.com/MbIGHeS.gif" | |
}, | |
{ | |
"escalatedquickly": "http://i.imgur.com/LRF7hiV.gif" | |
}, | |
{ | |
"yodarap": "http://i.imgur.com/Z0HSuzx.gif" | |
}, | |
{ | |
"order66": "http://i.imgur.com/Oig0DyC.gif" | |
}, | |
{ | |
"whatsinthebox": "http://i.imgur.com/gzQbHzx.gif" | |
}, | |
{ | |
"igor": "http://i.imgur.com/40VEucN.gif" | |
}, | |
{ | |
"judgejudy": "http://i.imgur.com/n5AVGpI.gif" | |
}, | |
{ | |
"whenwilldeathcome": "http://i.imgur.com/qnWjL.gif" | |
}, | |
{ | |
"dancingbear": "http://i.imgur.com/sm6Hm4E.gif" | |
}, | |
{ | |
"slowlaugh": "http://i.imgur.com/owQ5a.gif" | |
}, | |
{ | |
"sleeperhold": "http://i.imgur.com/3mtgayT.gif" | |
}, | |
{ | |
"clap": "http://i.imgur.com/1sF0ST8.gif" | |
}, | |
{ | |
"imustbreakyou": "http://i.imgur.com/0xY6PCN.gif" | |
}, | |
{ | |
"pleasestop": "http://i.imgur.com/vVXij1v.gif" | |
}, | |
{ | |
"laughcry": "http://i.imgur.com/dKtgBcq.gif" | |
}, | |
{ | |
"ronpaul": "http://i.imgur.com/nmg7g3W.gif" | |
}, | |
{ | |
"hereforthefood": "http://i.imgur.com/eBbBUi8.gif" | |
}, | |
{ | |
"givemycreationlife": "http://i.imgur.com/EGj988I.gif" | |
}, | |
{ | |
"imfree": "http://i.imgur.com/kmGZYVl.gif" | |
}, | |
{ | |
"explain": "http://i.imgur.com/2onmaGX.gif" | |
}, | |
{ | |
"whatyearisit": "http://i.imgur.com/AMbR63Y.gif" | |
}, | |
{ | |
"ilied": "http://i.imgur.com/0clLCnV.gif" | |
}, | |
{ | |
"dancingvader": "http://i.imgur.com/s4QzdfV.gif" | |
}, | |
{ | |
"comeagain": "http://i.imgur.com/VXB5u9f.gif" | |
}, | |
{ | |
"illhandlethis": "http://i.imgur.com/wJKXlJa.gif" | |
}, | |
{ | |
"grinch": "http://i.imgur.com/ix8H6ce.gif" | |
}, | |
{ | |
"want": "http://i.imgur.com/Tl0cOMb.gif" | |
}, | |
{ | |
"haveaseat": "http://i.imgur.com/6OuQJyp.gif" | |
}, | |
{ | |
"youunderestimatemypower": "http://i.imgur.com/YQudJrY.gif" | |
}, | |
{ | |
"fuck": "http://i.imgur.com/6DKA8jl.gif" | |
}, | |
{ | |
"hitme": "http://i.imgur.com/GoMrl1Y.gif" | |
}, | |
{ | |
"ihateyou": "http://i.imgur.com/vqOHjIn.gif" | |
}, | |
{ | |
"godforsakenplace": "http://i.imgur.com/qiqxH51.gif" | |
}, | |
{ | |
"dealwithit": "http://i.imgur.com/ZOd6Kku.gif" | |
}, | |
{ | |
"busy": "http://i.imgur.com/zd0dI5d.gif" | |
}, | |
{ | |
"illallowit": "http://i.imgur.com/PkpzXPr.gif" | |
}, | |
{ | |
"itsthesmell": "http://i.imgur.com/HKlSgj6.gif" | |
}, | |
{ | |
"itsthemsell": "--delete" | |
}, | |
{ | |
"unlimitedpower": "http://i.imgur.com/sjYWm1V.gif" | |
}, | |
{ | |
"huhhuh": "http://i.imgur.com/0cJzqJ7.gif" | |
}, | |
{ | |
"shh": "http://i.imgur.com/OAebFSY.gif" | |
}, | |
{ | |
"sadstrangelittleman": "http://i.imgur.com/rFiaiVd.gif" | |
}, | |
{ | |
"booyah": "http://i.imgur.com/2J0nlfb.gif" | |
}, | |
{ | |
"coldasshonkey": "http://i.imgur.com/er7xPUc.gif" | |
}, | |
{ | |
"welldone": "http://i.imgur.com/EZmyV0J.gif" | |
}, | |
{ | |
"damn": "http://i.imgur.com/pwg9kid.gif" | |
}, | |
{ | |
"donttouch": "http://i.imgur.com/HvKtacb.gif" | |
}, | |
{ | |
"notaware": "http://i.imgur.com/TOH3R5F.gif" | |
}, | |
{ | |
"survive": "http://i.imgur.com/dlXMIf4.gif" | |
}, | |
{ | |
"coincidence": "http://i.imgur.com/VWJFqAG.gif" | |
}, | |
{ | |
"nah": "http://i.imgur.com/lVYBd0O.gif" | |
}, | |
{ | |
"dancingbaby": "http://i.imgur.com/vMzRw.gif" | |
}, | |
{ | |
"insomnia": "http://i.imgur.com/EqcISKL.gif" | |
}, | |
{ | |
"sword": "http://i.imgur.com/DxiPDLD.gif" | |
}, | |
{ | |
"notfair": "http://i.imgur.com/EzuHgMp.gif" | |
}, | |
{ | |
"sweat": "http://i.imgur.com/DPg8Otv.gif" | |
}, | |
{ | |
"tellmemore": "http://i.imgur.com/zVFsaZX.gif" | |
}, | |
{ | |
"ohnoyes": "http://i.imgur.com/9QkfbIl.gif" | |
}, | |
{ | |
"goaway": "http://i.imgur.com/QX7ZvzF.gif" | |
}, | |
{ | |
"omgstars2": "http://i.imgur.com/wfRujZE.gif" | |
}, | |
{ | |
"thankyou": "http://i.imgur.com/hbDcYsZ.gif" | |
}, | |
{ | |
"domyjob": "http://i.imgur.com/4i2S5i1.gif" | |
}, | |
{ | |
"minionhopeful": "http://i.imgur.com/oNFYs2x.gif" | |
}, | |
{ | |
"throwmoney": "http://i.imgur.com/kC040VN.gif" | |
}, | |
{ | |
"brilliant": "http://i.imgur.com/ZY18RPx.gif" | |
}, | |
{ | |
"ohmy": "http://i.imgur.com/l5Aoia9.gif" | |
}, | |
{ | |
"stolen": "http://i.imgur.com/D6R4wUm.gif" | |
}, | |
{ | |
"dancingranger": "http://i.imgur.com/ynHD2W9.gif" | |
}, | |
{ | |
"nosurvivors": "http://i.imgur.com/vEvWqbj.gif" | |
}, | |
{ | |
"mightyneed": "http://i.imgur.com/OdUIRzC.gif" | |
}, | |
{ | |
"adventure": "http://i.imgur.com/OX08xPZ.gif" | |
}, | |
{ | |
"fantastic": "http://i.imgur.com/ExMgyKn.gif" | |
}, | |
{ | |
"disappointed": "http://i.imgur.com/XXIRL5i.gif" | |
}, | |
{ | |
"desperate": "http://i.imgur.com/l28PWZW.gif" | |
}, | |
{ | |
"ridehard": "http://i.imgur.com/DceyprW.gif" | |
}, | |
{ | |
"fliptable": "http://i.imgur.com/8E7Vk.gif" | |
}, | |
{ | |
"magic": "http://i.imgur.com/MTKsAbl.gif" | |
}, | |
{ | |
"eyebrows": "http://i.imgur.com/bvH8aWy.gif" | |
}, | |
{ | |
"happyhitler": "http://i.imgur.com/d6RZsql.gif" | |
}, | |
{ | |
"dontcare": "http://i.imgur.com/RcqKKbZ.gif" | |
}, | |
{ | |
"thanksfortheinput": "http://i.imgur.com/CnM3QJm.gif" | |
}, | |
{ | |
"sadbatman": "http://i.imgur.com/NUnWL9Z.gif" | |
}, | |
{ | |
"wat": "http://i.imgur.com/HQzHLzx.gif" | |
}, | |
{ | |
"gtfo": "http://i.imgur.com/zclNU9I.gif" | |
}, | |
{ | |
"completelydifferent": "http://i.imgur.com/G9R7Lpk.gif" | |
}, | |
{ | |
"idontbelieveyou": "http://i.imgur.com/K3p0eRX.gif" | |
}, | |
{ | |
"itokay": "http://i.imgur.com/u1KRRHb.gif" | |
}, | |
{ | |
"cookie": "http://i.imgur.com/pGLXsyd.gif" | |
}, | |
{ | |
"itsalive": "http://i.imgur.com/R3df1bU.gif" | |
}, | |
{ | |
"wouldnotsaysuchthings": "http://i.imgur.com/WkHZm6r.gif" | |
}, | |
{ | |
"bomb": "http://i.imgur.com/RfosTV5.gif" | |
}, | |
{ | |
"dance": "http://i.imgur.com/4MOuDrP.gif" | |
}, | |
{ | |
"another": "http://i.imgur.com/XDxCSnA.gif" | |
}, | |
{ | |
"vanillaice": "http://i.imgur.com/3K9jXWM.gif" | |
}, | |
{ | |
"kramerturkey": "http://i.imgur.com/eLPX7CG.gif" | |
}, | |
{ | |
"pew": "http://i.imgur.com/kyaSgHA.gif" | |
}, | |
{ | |
"marryme": "http://i.imgur.com/aCmkW5x.gif" | |
}, | |
{ | |
"curelove": "http://i.imgur.com/k42Ixy9.gif" | |
}, | |
{ | |
"nopeno": "http://i.imgur.com/TiPxxly.gif" | |
}, | |
{ | |
"accidents": "http://i.imgur.com/UqPoBMy.gif" | |
}, | |
{ | |
"crazypills": "http://i.imgur.com/MrMT8Gh.gif" | |
}, | |
{ | |
"cash": "http://i.imgur.com/lQTWcRP.gif" | |
}, | |
{ | |
"thumper": "http://i.imgur.com/WQbQm4u.gif" | |
}, | |
{ | |
"douchebag": "http://i.imgur.com/BzEfrik.gif" | |
}, | |
{ | |
"yeah": "http://i.imgur.com/Z3XXkIe.gif" | |
}, | |
{ | |
"damnmoon": "http://i.imgur.com/cliJDRX.gif" | |
}, | |
{ | |
"ffs": "http://i.imgur.com/vm2pSQV.gif" | |
}, | |
{ | |
"haters": "http://i.imgur.com/AozrtxW.gif" | |
}, | |
{ | |
"attention": "http://i.imgur.com/biYbXct.gif" | |
}, | |
{ | |
"what": "http://i.imgur.com/QJZrh6x.gif" | |
}, | |
{ | |
"thumbsup": "http://i.imgur.com/hRZCYuL.gif" | |
}, | |
{ | |
"tellme": "http://i.imgur.com/hI1Bp.gif" | |
}, | |
{ | |
"screamingminions": "http://i.imgur.com/Oc8ljIb.gif" | |
}, | |
{ | |
"eyesbatman": "http://i.imgur.com/07alz6y.gif" | |
}, | |
{ | |
"sleep": "http://i.imgur.com/I8vYuXy.gif" | |
}, | |
{ | |
"fire": "http://i.imgur.com/HTwKa4M.gif" | |
}, | |
{ | |
"howboutthat": "http://i.imgur.com/HK9DcWE.gif" | |
}, | |
{ | |
"yougetnothing": "http://i.imgur.com/zRF5stL.gif" | |
}, | |
{ | |
"yes": "http://i.imgur.com/ud0XXxE.gif" | |
}, | |
{ | |
"imadeafunny": "http://i.imgur.com/XdlJvMd.gif" | |
}, | |
{ | |
"headtilt": "http://i.imgur.com/P3N1A7B.gif" | |
}, | |
{ | |
"agonyrangers": "http://i.imgur.com/ZaRMXGN.gif" | |
}, | |
{ | |
"fangirling": "http://i.imgur.com/OvD6Arl.gif" | |
} | |
] | |
} | |
] | |
} |
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
<?php | |
function arrayval( $obj ) { | |
return (array) $obj; | |
} | |
$data = json_decode( file_get_contents( '../.boom' ) ); | |
$gifs = array_map( 'arrayval', $data->lists[0]->gifs ); | |
$gifs = call_user_func_array( 'array_merge', $gifs ); | |
ksort( $gifs ); | |
foreach ( $gifs as $handle => $url ) { | |
if ( file_exists( "$handle.gif" ) ) { | |
echo "Already have $handle.gif\r\n"; | |
continue; | |
} | |
$data = file_get_contents( $url ); | |
echo "Got $url\r\n"; | |
file_put_contents( "$handle.gif", $data ); | |
echo "Saved to $handle.gif\r\n"; | |
unset( $data ); | |
} | |
echo "Done!\r\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment