[00:21] *** BlueMax has joined #archiveteam-ot [00:54] is there a mediawiki viewer? preferrably one that works on macOS [00:55] aka mediawiki dump viewer [01:00] kiwix but I think it needs dumps in a special format [01:01] not the wikimedia output format i.e. https://dumps.wikifur.com/aarddict/ [01:01] http://www.openzim.org/wiki/Build_your_ZIM_file [01:01] or https://dumps.wikifur.com/ [02:00] *** icedice has quit IRC (Quit: Leaving) [02:17] *** coldice has joined #archiveteam-ot [03:35] *** kiskabak2 has quit IRC (Quit: The Lounge - https://thelounge.github.io) [03:40] *** kiskabak has joined #archiveteam-ot [03:48] anyone know how to "grep" the value from a json file? for example, i want to get the value of "upload_date" from a youtube video's info.json file and rename a folder to be the date. so if upload_date: 20181123, then it would name the folder 2018112 [03:48] sorry hit enter on accident, disregard that message [03:49] anyone know how to "grep" the value from a json file? for example, i want to get the value of "upload_date" from a youtube video's info.json file and rename a folder to be the date. so if upload_date: 20181123, then it would name the folder 20181123. i poked around with cat and grep to no success (tried cat info.json | grep 'upload_date:') [03:50] there is a utility called 'jq' which will do what you want [03:50] i `brew install jq' a while ago [03:50] and i have it, but idk how to use it [03:51] it said something about compiling which i dont want to do that [04:01] *** odemg has quit IRC (Ping timeout: 260 seconds) [04:13] *** odemg has joined #archiveteam-ot [08:07] *** Mateon1 has quit IRC (Ping timeout: 268 seconds) [08:07] *** Mateon1 has joined #archiveteam-ot [09:36] *** caff has quit IRC (Read error: Connection reset by peer) [10:50] You should use a proper JSON tool like jq, but it is possible to do it with grep as well as long as it's not too complex (e.g. multiple occurrences of upload_date). Something like this: grep -Po '"upload_date"\s*:\s*"\K[^"]+' [10:50] w0rmhole: ^ [10:56] there's https://github.com/TomNomNom/gron too [11:05] https://github.com/ludios/quickmunge/blob/master/bin/gron [13:13] *** BlueMax has quit IRC (Quit: Leaving) [13:30] *** erin has quit IRC (hub.efnet.us irc.servercentral.net) [13:30] *** zino has quit IRC (hub.efnet.us irc.servercentral.net) [13:30] *** MrRadar has quit IRC (hub.efnet.us irc.servercentral.net) [13:30] *** astrid has quit IRC (hub.efnet.us irc.servercentral.net) [13:30] *** chirlu` has quit IRC (hub.efnet.us irc.servercentral.net) [14:00] *** erin has joined #archiveteam-ot [14:00] *** zino has joined #archiveteam-ot [14:00] *** MrRadar has joined #archiveteam-ot [14:00] *** astrid has joined #archiveteam-ot [14:00] *** chirlu` has joined #archiveteam-ot [14:23] *** faolingfa has joined #archiveteam-ot [14:32] *** zino has quit IRC (Read error: Connection reset by peer) [14:33] *** zino has joined #archiveteam-ot [14:55] *** schbirid has joined #archiveteam-ot [15:45] *** godane has quit IRC (Read error: Operation timed out) [15:59] *** godane has joined #archiveteam-ot [16:00] *** svchfoo1 sets mode: +o godane [16:31] *** wp494 has quit IRC (Ping timeout: 252 seconds) [16:32] *** wp494 has joined #archiveteam-ot [19:19] *** schbirid has quit IRC (Read error: Operation timed out) [19:31] *** Nicu` has joined #archiveteam-ot [19:33] *** odemg has quit IRC (Ping timeout: 260 seconds) [20:18] *** Nicu` has quit IRC (Ping timeout: 255 seconds) [22:30] *** coldice has quit IRC (Quit: Leaving) [23:40] *** BlueMax has joined #archiveteam-ot