smarg19 Posted December 13, 2014 Share Posted December 13, 2014 KA TorrentsDownload at PackalVersion: 1.0Unfortunately, the Piratebay is now down. Whether it will remain down, and if not for how long remains to be seen. I had been using Florian's fantastic Piratebay workflow to easily search and download files. With the servers down, I needed another backend and so another workflow. IMO, KickAss torrents is the best aggregator out there now that Piratebay is gone. So, I wrote a simple workflow to search and download torrents from KickAss.There is only one keyword filter: torrent. Type that then your query. If you select a result, it will open the magnet link, meaning that your torrent client will automatically open to start downloading. Fast, easy. No whistles.Enjoy! Link to comment
Florian Posted December 14, 2014 Share Posted December 14, 2014 This is interesting but limited. Are you planning on expanding it? Adding categories, possibility to copy magnet link, view top from category? Obviously I've had to start playing with the kickass .json api and it all seems doable Link to comment
smarg19 Posted December 14, 2014 Author Share Posted December 14, 2014 At this moment, I don't plan on expanding it, as I personally don't use any of those features. I'm a man with simple torrent tastes Obviously, though, some people do use those features. And seeing as how Piratebay just might not come back ever, working something up with KA seems like a good idea. I'm busy with other things right now, but I'm willing to help in small bits. Tho, from what I remember, your Piratebay workflow was written in PHP, which I don't know. So, I guess I'm saying, you can take all of my code and build on it and I'm willing to help when I can. Or you can make my workflow obsolete Either way, I'll be fine. Link to comment
Florian Posted December 15, 2014 Share Posted December 15, 2014 Damn, I am lazy these days Hopefully someone with pressing and geeky needs does the work for me! Link to comment
smarg19 Posted December 15, 2014 Author Share Posted December 15, 2014 I understand that! Too little time, too much to (possibly) do. That's one of the main reasons this workflow does the bare minimum. I wrote it in an afternoon when Piratebay went down. Link to comment
Damoeire Posted December 15, 2014 Share Posted December 15, 2014 Hi again Stephen,  Here is the log for the error I'm getting  Thanks, D.   Starting debug for 'KA Torrents'  [ERROR: alfred.workflow.input.scriptfilter] Code 1: 19:34:27 workflow.py:1892 ERROR   'NoneType' object has no attribute 'text' Traceback (most recent call last):  File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.E62FD2DC-97FA-4060-B970-A124ADFE4FC4/workflow/workflow.py", line 1890, in run   func(self)  File "torrents.py", line 69, in main   for item in scrape_torrent_site(query):  File "torrents.py", line 29, in scrape_torrent_site   label_text = normalise_whitespace(soup.find('tr').text) AttributeError: 'NoneType' object has no attribute 'text' 19:34:27 workflow.py:1907 DEBUG   Workflow finished in 2.328 seconds. [ERROR: alfred.workflow.input.scriptfilter] Code 1: 19:34:30 workflow.py:1892 ERROR   'NoneType' object has no attribute 'text' Traceback (most recent call last):  File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.E62FD2DC-97FA-4060-B970-A124ADFE4FC4/workflow/workflow.py", line 1890, in run   func(self)  File "torrents.py", line 69, in main   for item in scrape_torrent_site(query):  File "torrents.py", line 29, in scrape_torrent_site   label_text = normalise_whitespace(soup.find('tr').text) AttributeError: 'NoneType' object has no attribute 'text' 19:34:30 workflow.py:1907 DEBUG   Workflow finished in 2.432 seconds. Link to comment
smarg19 Posted December 15, 2014 Author Share Posted December 15, 2014 What are you searching for? This will help me replicate the bug. Link to comment
Damoeire Posted December 15, 2014 Share Posted December 15, 2014 It happens regardless of what I type in, I can type in garbage, or doctor who, or new girl, or breaking bad, or one word as well Link to comment
smarg19 Posted December 15, 2014 Author Share Posted December 15, 2014 Ok. TBH, I am beginning to suspect that your internet connection is wonky. The workflow runs clean for me every time. The error you are reporting says essentially that there is nothing there. Now, the request went through, so it's not that your internet is off. But the workflow isn't getting anything from the response. This might also explain the ZotQuery export errors. Can you check your internet connection? Obviously you are getting online, to post here, but the error just doesn't make sense otherwise. In the meantime, I will try to make a version with some logging so that I can see what's happening in the intermediate steps. Link to comment
Downey Posted January 7, 2015 Share Posted January 7, 2015 Hi, I tried to use your workflow but I get this error every time I try to search for something. Do you know what the problem is and how I can resolve it? Link to comment
smarg19 Posted January 8, 2015 Author Share Posted January 8, 2015 Can you run Alfred's debugger and paste the results? Link to comment
poweryn Posted July 5, 2015 Share Posted July 5, 2015 Is it possible to restrict porn and filthy content from showing up? Link to comment
smarg19 Posted July 11, 2015 Author Share Posted July 11, 2015 Is it possible to restrict porn and filthy content from showing up? Â Not in any sensible way that I can of. I personally don't really see any of that, but I'm mostly searching for TV episodes and movies. Is there some way to tell easily? I could filter results, but I would need to know what to filter on. poweryn 1 Link to comment
poweryn Posted July 14, 2015 Share Posted July 14, 2015 Not in any sensible way that I can of. I personally don't really see any of that, but I'm mostly searching for TV episodes and movies. Is there some way to tell easily? I could filter results, but I would need to know what to filter on. Â Thanks for the reply, a lot of times when I search for almost anything there would be some content that it of that category. Can you restrict the whole porn branch of the website? If not maybe you can restrict by a keyword list. If you are able to do that I would be thankful to you. Here is a sample list http://pastebin.com/gpHmA8X5 Link to comment
dwd Posted August 27, 2015 Share Posted August 27, 2015 (edited) Â Class of magnet link anchor on kat.cr page has changed, so perhaps you should remove 'imagnet ' from the following:Â magnet = item.find('a', {'class': 'imagnet icon16'}).get('href') Seems to work when I remove it. Â EDIT: The following change seems to work properly, by opening a magnet link in torrent application: magnet = item.find('a', {'title':'Torrent magnet link', 'class': 'icon16'}).get('href') Debug output below: Starting debug for 'KA Torrents' [ERROR: alfred.workflow.input.scriptfilter] Code 1: 15:34:26 workflow.py:1892 ERROR 'NoneType' object has no attribute 'get' Traceback (most recent call last): File "/Users/.../Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.xxx/workflow/workflow.py", line 1890, in run func(self) File "torrents.py", line 69, in main for item in scrape_torrent_site(query): File "torrents.py", line 39, in scrape_torrent_site magnet = item.find('a', {'class': 'imagnet icon16'}).get('href') AttributeError: 'NoneType' object has no attribute 'get' Edited August 28, 2015 by dwd Link to comment
smarg19 Posted September 4, 2015 Author Share Posted September 4, 2015 Yes. I have just fixed it. Will hopefully be able to push the new version this weekend. alibolcakan 1 Link to comment
carlobloks Posted October 23, 2015 Share Posted October 23, 2015 Hi, any chance you will be pushing the update soon? Thanks Link to comment
emamuna Posted March 5, 2016 Share Posted March 5, 2016 Because this one was not working I wrote a similar workflow, try it if you want! http://www.alfredforum.com/topic/8636-kat-search-search-on-kickass-torrent/ Link to comment
suwao Posted August 26, 2017 Share Posted August 26, 2017 Try using some kickass torrent alternatives will be great for future torrenting while kickass will be down. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now