public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Got a json file from YouTube...
@ 2020-06-05 17:26 tuxic
  2020-06-05 17:44 ` garantiertnicht
  2020-06-06  3:29 ` David Haller
  0 siblings, 2 replies; 4+ messages in thread
From: tuxic @ 2020-06-05 17:26 UTC (permalink / raw
  To: Gentoo

Hi,

via https://youtuberandomcomment.com/ ->Download all is it possible
to download all comments of a YouTube-Video....as a json file, which
contains exactly one, very long line.

This is exactly the formatting I would prefer to read
threaded comments ....;

Is there something in portage, which is recommended to 
reformat/display this json-input into something more 
readable...?

Cheers!
Meino




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Got a json file from YouTube...
  2020-06-05 17:26 [gentoo-user] Got a json file from YouTube tuxic
@ 2020-06-05 17:44 ` garantiertnicht
  2020-06-06  3:29 ` David Haller
  1 sibling, 0 replies; 4+ messages in thread
From: garantiertnicht @ 2020-06-05 17:44 UTC (permalink / raw
  To: gentoo-user

tuxic@posteo.de; 2020-06-05T19:26:32+0200:
> Hi,
> 
> via https://youtuberandomcomment.com/ ->Download all is it possible
> to download all comments of a YouTube-Video....as a json file, which
> contains exactly one, very long line.
> 
> This is exactly the formatting I would prefer to read
> threaded comments ....;
> 
> Is there something in portage, which is recommended to 
> reformat/display this json-input into something more 
> readable...?
> 
> Cheers!
> Meino
> 
> 
> 

Hello,

I'm usually using app-misc/jq for all my json needs. It isn't exactly a json
pretty-printer but more of a swiss army knife for extracting data from json. It
does formatting, tho :)

You could also try your Web User Agent. My Firefox already does format json, so
maybe you could try open it there if you just want to read it.

Regards,
garantiertnicht


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Got a json file from YouTube...
  2020-06-05 17:26 [gentoo-user] Got a json file from YouTube tuxic
  2020-06-05 17:44 ` garantiertnicht
@ 2020-06-06  3:29 ` David Haller
  2020-06-06  4:17   ` tuxic
  1 sibling, 1 reply; 4+ messages in thread
From: David Haller @ 2020-06-06  3:29 UTC (permalink / raw
  To: gentoo-user

Hello,

On Fri, 05 Jun 2020, tuxic@posteo.de wrote:
>Is there something in portage, which is recommended to 
>reformat/display this json-input into something more 
>readable...?

json_pp from dev-lang/perl which you should already have
installed ;) Example usage:

$ json_pp < some.json | less

HTH,
-dnh

-- 
A mouse is a device used to focus xterms.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Got a json file from YouTube...
  2020-06-06  3:29 ` David Haller
@ 2020-06-06  4:17   ` tuxic
  0 siblings, 0 replies; 4+ messages in thread
From: tuxic @ 2020-06-06  4:17 UTC (permalink / raw
  To: gentoo-user

On 06/06 05:29, David Haller wrote:
> Hello,
> 
> On Fri, 05 Jun 2020, tuxic@posteo.de wrote:
> >Is there something in portage, which is recommended to 
> >reformat/display this json-input into something more 
> >readable...?
> 
> json_pp from dev-lang/perl which you should already have
> installed ;) Example usage:
> 
> $ json_pp < some.json | less
> 
> HTH,
> -dnh
> 
> -- 
> A mouse is a device used to focus xterms.
> 


Hi,

thanks a lot ! Both application will help me a lot!
:)

Cheers!
Meino




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-06  4:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-05 17:26 [gentoo-user] Got a json file from YouTube tuxic
2020-06-05 17:44 ` garantiertnicht
2020-06-06  3:29 ` David Haller
2020-06-06  4:17   ` tuxic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox