LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-10-2017, 09:48 PM   #1
kryptxy
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Rep: Reputation: Disabled
Command-line torrent search program (tool)


Hi,
I built a command-line torrent search program. The tool searches torrents from thepiratebay (no more ads yeah!!) and linuxtracker.org

Its written in python3.

Project link: https://github.com/kryptxy/torrench

Wanted to share this, as I know how overwhelming torrent hunt can be (especially the annoying ads). I have included samples (with screenshots) in description, along with installation instructions (supports all linux distros).

Hope you find it useful. Suggestions and feedbacks are much appreciated.

PyPI: https://pypi.python.org/pypi/torrench/
AUR: https://aur.archlinux.org/packages/torrench/


UPDATE (v1.0.3) - Added KickassTorrent Support

KickassTorrents are now supported by torrench.
Use KAT option with (-k) argument

I had to make a few more changes.
The important ones are:
  • Changed config file location directory from ~/.config/tpb to ~/.config/torrench [rename tpb/ to torrench/]
  • Updated config.ini. Get a fresh copy of config.ini file to add KickassTorrent support (link below)

Links:

PROJECT LINK
CONFIG.INI

Suggestions/feedback are more than welcome. They motivate me to keep this project active and running

Last edited by kryptxy; 08-13-2017 at 06:34 AM. Reason: Update
 
Old 08-10-2017, 11:01 PM   #2
jsbjsb001
Member
 
Registered: Mar 2009
Location: hopefully earth ;)
Distribution: still deciding
Posts: 430

Rep: Reputation: 189Reputation: 189
Thumbs up

Quote:
Originally Posted by kryptxy View Post
Hi,
I built a command-line torrent search program. The tool searches torrents from thepiratebay (no more ads yeah!!) and linuxtracker.org

Its written in python3.

Project link: https://github.com/kryptxy/torrench

Wanted to share this, as I know how overwhelming torrent hunt can be (especially the annoying ads). I have included samples (with screenshots) in description, along with installation instructions (supports all linux distros).

Hope you find it useful. Suggestions and feedbacks are much appreciated.

PyPI: https://pypi.python.org/pypi/torrench/
AUR: https://aur.archlinux.org/packages/torrench/
I like the idea, thanks for sharing!! (haven't tried it yet, but will!)

Good idea!
 
Old 08-11-2017, 06:32 AM   #3
kryptxy
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by jsbjsb001 View Post
I like the idea, thanks for sharing!! (haven't tried it yet, but will!)

Good idea!
Thanks Suggestions are more than welcome..

Last edited by kryptxy; 08-11-2017 at 06:33 AM. Reason: Typo fix
 
Old 08-12-2017, 02:39 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,936

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
well done.
by making your code public, you also open it to criticism.
here's mine:
- only 2 sites? of which one is blocked by many, many ISPs? have you even included a means to use one of the many piratebay proxy services?
- ads? so you're a python coder and have never heard of adblock? tsk, tsk.
- what about magnet links?
- many sites offer much more extensive multi-tracker torrent searches.
 
Old 08-12-2017, 05:05 AM   #5
kryptxy
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
well done.
by making your code public, you also open it to criticism.
here's mine:
- only 2 sites? of which one is blocked by many, many ISPs? have you even included a means to use one of the many piratebay proxy services?
- ads? so you're a python coder and have never heard of adblock? tsk, tsk.
- what about magnet links?
- many sites offer much more extensive multi-tracker torrent searches.
1. The tool fetches TPB torrents from TPB proxy sites only. Not the TPB main site. It automatically searches for TPB proxy. If you find the proxies not working for you, ping me and let me know the site that works for you. I will happily add it.
2. Adblocks* I have 3 adblocks, still ads pop-up.
3. Torrents from TPB are downloaded USING magnetic links only.
4. I built this for myself to ease the entire torrent-hunt process. I am sure there are many other sites, and I will keep updating it with new site support. But I generally (infact only) use TPB, so focused entirely on building it for TPB.

That being said, I am working on supporting kickasstorrents. Should be able to bring update by tomorrow.

Last edited by kryptxy; 08-12-2017 at 05:07 AM.
 
Old 08-12-2017, 06:03 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,936

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
ok, this has gotten more interesting for me now.
but still:

Quote:
Originally Posted by kryptxy View Post
1. The tool fetches TPB torrents from TPB proxy sites only. Not the TPB main site. It automatically searches for TPB proxy.
proxy as in only one? or many?

Quote:
2. Adblocks* I have 3 adblocks, still ads pop-up.
strange, i'm not getting any ads.

Quote:
Torrents from TPB are downloaded USING magnetic links only.
so is your tool downloading the actual files/data/media also?
if so, not sure i still like it.
if not, why convert magnetic links to .torrent files in the first place?

Quote:
I am sure there are many other sites, and I will keep updating it with new site support.
hear hear!

Quote:
That being said, I am working on supporting kickasstorrents. Should be able to bring update by tomorrow.
oh, they're up again!
 
Old 08-12-2017, 07:08 AM   #7
kryptxy
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
ok, this has gotten more interesting for me now.
but still:
Quote:
Originally Posted by ondoho View Post
proxy as in only one? or many?
Many. A list of proxies is fetched. If one doesn't work, it tries for next.

Quote:
Originally Posted by ondoho View Post
strange, i'm not getting any ads.
Using thepiratebay.org probably? I have been through many proxies, and all of them are flooded with ads/pop-ups. Adblocks didn't help too.

Quote:
Originally Posted by ondoho View Post
so is your tool downloading the actual files/data/media also?
if so, not sure i still like it.
if not, why convert magnetic links to .torrent files in the first place?
No. No .torrent files are downloaded at all (For TPB). Torrent is directly obtained using magnetic link.
No magnetic links are converted to .torrent files at all.

Last edited by onebuck; 08-12-2017 at 09:16 AM. Reason: repair tag
 
Old 08-13-2017, 03:44 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,936

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
Quote:
Originally Posted by kryptxy View Post
No. No .torrent files are downloaded at all (For TPB). Torrent is directly obtained using magnetic link.
the way you phrase this, i understand that this actually works as a torrent client, not just a search tool?
 
Old 08-13-2017, 04:48 AM   #9
kryptxy
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
the way you phrase this, i understand that this actually works as a torrent client, not just a search tool?
Not a torrent client.. It adds torrent to (pre-installed) torrent client, the way a torrent is added when we click on some magnetic link.
 
Old 08-13-2017, 06:46 AM   #10
kryptxy
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
UPDATE (v1.0.3) - Added KickassTorrent Support

KickassTorrents are now supported by torrench.
Use KAT option with (-k) argument

I had to make a few more changes.
The important ones are:
  • Changed config file location directory from ~/.config/tpb to ~/.config/torrench [rename tpb/ to torrench/]
  • Updated config.ini. Get a fresh copy of config.ini file to add KickassTorrent support (link below)

Links:

PROJECT LINK
CONFIG.INI

Suggestions/feedback are more than welcome. They motivate me to keep this project active and running
 
Old 08-17-2017, 01:48 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,936

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
i finally got around to taking a look at this.

i'm impressed!

i installed 2 torrent search tools from the AUR, and yours has all the things i consider important & missed in the other:

- sort by seeders by default
- access TPB through proxy
- option to view comments

a few things:
- why do we need to dl the config.ini from a separate site that only works with javascript enabled? it's just a few lines...
- when i finally download a torrent, it opens the link straight away in the browser, which has no assossiation with any torrent program and thus doesn't know what to do with it. configurability would be appreciated here.
- i'd love to be able to view the comments inline, instead of saving them to a temporary file
 
Old 08-17-2017, 11:21 AM   #12
kryptxy
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
- why do we need to dl the config.ini from a separate site that only works with javascript enabled? it's just a few lines...
I didn't notice that javascript needs to be enabled to download from sync. I'll move the file to different hosting site where JS is not required.

Quote:
Originally Posted by ondoho View Post
- when i finally download a torrent, it opens the link straight away in the browser, which has no assossiation with any torrent program and thus doesn't know what to do with it. configurability would be appreciated here.
Generally (for me, on windows and linux), when magnetic link is opened in a browser, the browser automatically opens the default (installed) torrent client and loads torrent onto it. I did thought of the possibility of browser not opening the torrent client or case when no torrent client is present, but didn't stress on that. I think it requires fixing. Will definitely see what I can do about it.

Quote:
Originally Posted by ondoho View Post
- i'd love to be able to view the comments inline, instead of saving them to a temporary file
You mean displaying comments in console itself instead of saving them as HTML?
 
Old 08-18-2017, 01:31 AM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,936

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
thanks!

Quote:
Originally Posted by kryptxy View Post
I didn't notice that javascript needs to be enabled to download from sync. I'll move the file to different hosting site where JS is not required.
but there's no reason to move it off-site at all!
just disable the proxy options by default, tell the user of the restrictions some IPs might have, or even legal problems in some countries, and enabling them is on their own risk.

Quote:
You mean displaying comments in console itself instead of saving them as HTML?
yes.

another thought I had:
Why do you default to torrent search sites that are disabled with so many ISP's in many countries?
Why not include something like isohunt.to which is not disabled (at least not here)?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line search tool alsaf Linux - Newbie 4 04-11-2011 11:50 AM
LXer: PPASEARCH- A tool that search and add PPA repository in ubuntu via command line LXer Syndicated Linux News 0 08-23-2010 05:50 AM
Command-line torrent or alike ? prixone Linux - Software 3 06-24-2010 10:19 PM
command line tool to search for celluar phone provider/carrier? lindylex Programming 7 03-01-2009 01:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration