Re: [gentoo-user] Got a json file from YouTube...

2020-06-05 Thread tuxic
On 06/06 05:29, David Haller wrote:
> Hello,
> 
> On Fri, 05 Jun 2020, tu...@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





Re: [gentoo-user] Got a json file from YouTube...

2020-06-05 Thread David Haller
Hello,

On Fri, 05 Jun 2020, tu...@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.



Re: [gentoo-user] Got a json file from YouTube...

2020-06-05 Thread garantiertnicht
tu...@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-Videoas 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



[gentoo-user] Got a json file from YouTube...

2020-06-05 Thread tuxic
Hi,

via https://youtuberandomcomment.com/ ->Download all is it possible
to download all comments of a YouTube-Videoas 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