Giter VIP home page Giter VIP logo

juliensalinas / torrengo Goto Github PK

View Code? Open in Web Editor NEW
94.0 8.0 15.0 14.84 MB

Torrengo is a CLI (command line) program written in Go which concurrently searches torrents from various sources.

Home Page: https://juliensalinas.com/en/golang-concurrent-torrent-scraper-cli-torrengo/

License: GNU General Public License v3.0

Go 100.00%
torrent torrent-downloader scraping golang go concurrency piratebay 1337x archiveorg t411

torrengo's People

Contributors

clemlatz avatar juliensalinas avatar yvgny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

torrengo's Issues

Can't search on yggtorrent anymore

An error occured during search on Ygg Torrent
ERRO[0008] The ygg search goroutine broke                _source="torrengo/torrengo.go:498" error="error while fetching url: status code error: 503 503 Service Unavailable" input=pokemon
No result found...
exit status 1

I think this is due to their new browser detector when searching.
Is there a way around this?

Failed installation with go get -u

$ go get -u github.com/juliensalinas/torrengo
Returns:

github.com/chromedp/chromedp

go/pkg/mod/github.com/chromedp/[email protected]/query.go:1139:8: assignment mismatch: 7 variables but css.GetMatchedStylesForNode(nodes[0].NodeID).Do returns 8 values

Printing the best results at bottom

As the first few search results are usually the best, I find myself almost always scroll up to get the torrent index.
Thus it would be nice to have an option to reverse the result table. What do you think about it, would you accept a PR for this option?

This is basically mean changing the following line of "torrengo.go"

renderedTorrents = append(renderedTorrents, renderedTorrent)

to

renderedTorrents = append([][]string{renderedTorrent}, renderedTorrents...)

Thanks.

Failed installation

Hello,

Throws this error :

laquais-> go get github.com/juliensalinas/torrengo
.# github.com/chromedp/chromedp
pkg/mod/github.com/chromedp/[email protected]/chromedp.go:155:15: assignment mismatch: 2 variables but action.Do returns 1 values

What can I do ?

Regards.

Feature request: webtorrent support

I'd love to have webtorrent-cli support.

Downloads are started with the webtorrent download <torrent-id> where <torrent-id> can be:

  • a magnet uri
  • a http url to .torrent file
  • a filesystem path to .torrent file
  • an info hash (hex string)

I have never done any go, but the torrengo source code seems fairly easy to understand, so I though I might have a go (haha!) as a first dive into the language and try a pull request next week if you're ok.

google-chrome

Hello,
First thank you for your great work on torrengo.

I'm using it on a raspberry/arch linux
I did
go get -v -u github.com/juliensalinas/torrengo
go build -v github.com/juliensalinas/torrengo
I tried it and I got the following error
error="error while fetching url: could not download page: exec: "google-chrome": executable file not found in $PATH

I tried to install google-chrome but google-chrome is not available for the 'armv7h' architecture.

Did I miss something?
could you add a switch to come back to the older behavior?

Regards

Feature request: transmission support

Hi, nice tool. I'm just trying it in place of torrench, since the author vanished from the web for some months already. First thing I miss is no ability to send torrent to transmission. It would be great to have ;-)

Install failure

Not certain why my install fails.

Throws this error. Is this on my end or yours? How can I help determine that?

go/src/github.com/juliensalinas/torrengo/core/core.go:176:17: assignment mismatch: 2 variables but network.SetCookie(cookie.Name, cookie.Value).WithExpires(&expiry).WithDomain(cookie.Domain).WithPath(cookie.Path).WithHTTPOnly(cookie.HttpOnly).WithSecure(cookie.Secure).Do returns 1 values

yggtorrent parsing broken ?

Hello,
I encounter problems with yggtorrent website:

Please select a torrent to download (enter its index):
16
Do you want to open torrent in Deluge client? [y / n]
n
You need an Ygg Torrent account to download the file.
Please enter your user ID:
xxxx
Please enter your user pass:
xxxx
Could not retrieve the torrent file (see logs for more details).
FATA[0014] Could not retrieve the torrent file           _source="torrengo/torrengo.go:167" descURL="https://www2.yggtorrent.ch/torrent/filmvidéo/film/449863-glass+2019+multi+truefrench+1080p+bluray+dts+hdhra+x264-neo" error="error while parsing torrent description page: could not find a torrent file on the description page"

Could you check ?

Getting error: signal SIGSEGV: segmentation violation

Just wanted to report this failure:

# torrengo Bruges
...
Please select a torrent to download (enter its index):
0
Do you want to open torrent in Deluge client? [y / n]
n
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x60bd12]

goroutine 1 [running]:
net/http.(*Client).deadline(0x0, 0xffffffffffffffff, 0x203000, 0xb90000c0006baf38)
        /usr/local/go/src/net/http/client.go:187 +0x22
net/http.(*Client).do(0x0, 0xc000156300, 0x0, 0x0, 0x0)
        /usr/local/go/src/net/http/client.go:527 +0x22c
net/http.(*Client).Do(...)
        /usr/local/go/src/net/http/client.go:509
github.com/juliensalinas/torrengo/core.Fetch(0xc00069e200, 0x76, 0x0, 0x0, 0x0, 0xc00069e207)
        /root/gocode/src/github.com/juliensalinas/torrengo/core/core.go:39 +0x543
github.com/juliensalinas/torrengo/td.DlFile(0xc00069e200, 0x76, 0x12a05f200, 0x0, 0x0, 0x0, 0x0)
        /root/gocode/src/github.com/juliensalinas/torrengo/td/download.go:69 +0x270
main.getTorrentFile(0x0, 0x0, 0x0, 0x0, 0x12a05f200, 0x0)
        /root/gocode/src/github.com/juliensalinas/torrengo/torrengo.go:155 +0x7fe
main.main()
        /root/gocode/src/github.com/juliensalinas/torrengo/torrengo.go:655 +0x20de

Feature request: sort search results

Bonjour !

I don't think there is any way to sort search results right now, but I think it would be very useful. I often use sorting when searching for torrents on yggtorrent to display the most recent or the most seeded results first.

Use cases I can think of:

  • Most recent (to find the last episode of a tv show)
  • Most seeded (to get something as fast as possible when there is a lot of choices)
  • Biggest files (to find a torrent that contains a whole series instead of single episodes)

Fantastic work as it is already!

Feature Request: inline arguments for scripting call

Congrates for your jobs, your tools is wonderfull!

I need to crawl ygg to download every most seeds torrent automaticly, in bash.

Is it possible with Torrengo currently to pass as an argument the necessary to have a non-interactive mode ?
So I could work a whole bash reel

[YGG] Loop bug when user ID is given

When user ID is asked for YGG torrent, we enter an infinite loop of "Could not read your input, please try again:" just after providing the user ID.

Name of the output file

Hi,

Thanks for this great tool.

Is it possible to save the output file with the name of the search ?

For exemple :
torrengo -s ygg watchmen les gardiens

in watchmen.les.gardiens.torrent rather than download_torrent?id=xxxx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.