diantahoc / byteflood

A free as in freedom BitTorrent client, designed for everyone.
GNU General Public License v3.0
5 stars 0 forks source link

Integrate internal torrent seaching on the web. #3

Closed diantahoc closed 10 years ago

hexafluoride commented 10 years ago

bloat

Lol.

How would that work though, which services offer torrent searching? Will it just use a search engine?

diantahoc commented 10 years ago

By sending HTTP Requests, and parsing HTML responses. It's doable, but I don't know to which degree yet. It depends on how torrent websites tolerate automated (or non-browser) web requests.

hexafluoride commented 10 years ago

I know how to parse webpages, but I was asking about (reliable) services that offer torrent searching.

Torrentz.eu, maybe?

diantahoc commented 10 years ago

I don't know about torrentz.eu since I never used it, but it doesn't have to by only 1 torrent source. We could have a generic ITorrentSearchEngine interface, and have the sources such as (torrentz.eu, kat.ph, eztv.it, TPB) implement this interface, and do the parsing.

The user can select which source he wants. This way also 3rd party devs can write their website plugin (such as private trackers) [spoiler]At least we can hope so[/spoiler].

hexafluoride commented 10 years ago

Torrentz.eu is a service that searches for most mainstream torrent websites, including kat.ph, eztv.it and TPB. Upon a quick inspection, there's no API though, meaning we will have to parse the search results by hand.

Making an interface would be pretty useful for extending functionality in the future though.

hexafluoride commented 10 years ago

Also, good night. Our timezones sadly don't match.

diantahoc commented 10 years ago

Torrentz.eu is a service that searches for most mainstream torrent websites, including kat.ph, eztv.it and TPB.

That's nice. I didn't know.

How do you intend to parse the results though? If you come to me, I would use HtmlAgilityPack.

Also, good night. Our timezones sadly don't match.

No they do. It's 2:30 AM here too. Good night.

hexafluoride commented 10 years ago

It's 2:30 AM here too.

Oh.

HtmlAgilityPack is of course the best option, if you don't want to use tens of Split()s.

diantahoc commented 10 years ago

Implemented in https://github.com/diantahoc/byteflood/commit/1991c5b8aaa9cf631d92b9852f01890b7e035379