TUVIMEN / torge

A shell script for searching for links on torrent sites
GNU General Public License v3.0
53 stars 2 forks source link

can we get results back as json? #3

Closed ralyodio closed 3 weeks ago

ralyodio commented 4 weeks ago

I'd like to use this as an api on my streaming app, but I need results in json.

ralyodio commented 4 weeks ago

it looks like reliq supports json output.

TUVIMEN commented 4 weeks ago

If you think about it torge already returns something close to csv list.

I've just added --csv option so that line number will not be printed and links will be added at the end of record.

Most sites don't store magnet links in search pages and they have to be downloaded from selected page, so by default link field points to whatever link is found.

If you want magnet links use --csv and --link-conv options, but note that this will take a couple seconds to go through all of them.

You can also change default delimiter \t with -D option.

ralyodio commented 4 weeks ago

i don't need csv i need json. should be easy to add a --json flag no?

TUVIMEN commented 4 weeks ago

--json option has been added.

TUVIMEN commented 4 weeks ago

This also adds jq to the list of dependencies.

ralyodio commented 3 weeks ago

thanks