Giter Site home page Giter Site logo

alyakhtar / katastrophe Goto Github PK

View Code? Open in Web Editor NEW
86.0 6.0 15.0 330 KB

Command Line Tool to download torrents

Home Page: http://alyakhtar.github.io/Katastrophe/

License: MIT License

Python 100.00%
screenshot deluge bittorrent torrent kickass-torrents command-line python web-crawling

katastrophe's People

Contributors

alyakhtar avatar ishansaraf avatar professorjamesmoriarty 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

katastrophe's Issues

katastrophe 2.0.4 on ubuntu 16.04 LTS

hello,

i have update, uninstall and install , i got the 2.0.4 version.

but it still doesn't go through.....
there are the result when i input katastrophe --verifyssl=false

Torrent Search : -m
Traceback (most recent call last):
File "/usr/local/bin/katastrophe", line 9, in
load_entry_point('katastrophe==2.0.4', 'console_scripts', 'katastrophe')()
File "/usr/local/lib/python2.7/dist-packages/katastrophe/katastrophe.py", line 248, in main
table = fetch(query, page, ssl)
File "/usr/local/lib/python2.7/dist-packages/katastrophe/katastrophe.py", line 97, in fetch
source_code = requests.get(link,verify = ssl)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/api.py", line 71, in get
return request('get', url, params=params, *_kwargs)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/api.py", line 57, in request
return session.request(method=method, url=url, *_kwargs)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, *_send_kwargs)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, *_kwargs)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/adapters.py", line 477, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL] unknown error (_ssl.c:590)

then i try

sugiono@sugiono-X455LD:~$ katastrophe --verifyssl=false -m
Traceback (most recent call last):
File "/usr/local/bin/katastrophe", line 9, in
load_entry_point('katastrophe==2.0.4', 'console_scripts', 'katastrophe')()
File "/usr/local/lib/python2.7/dist-packages/katastrophe/katastrophe.py", line 211, in main
movies_torrent(ssl)
File "/usr/local/lib/python2.7/dist-packages/katastrophe/latest.py", line 140, in movies_torrent
torrents = fetch(ssl)
File "/usr/local/lib/python2.7/dist-packages/katastrophe/latest.py", line 93, in fetch
source_code = requests.get(link,verify = ssl)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/api.py", line 71, in get
return request('get', url, params=params, *_kwargs)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/api.py", line 57, in request
return session.request(method=method, url=url, *_kwargs)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, *_send_kwargs)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, *_kwargs)
File "/home/sugiono/.local/lib/python2.7/site-packages/requests/adapters.py", line 477, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL] unknown error (_ssl.c:590)

Use print() everywhere

Put from __future__ import print_function at the top of all python files and use print() wherever required and you code should be py 3 compatible.

P.S You are using a mix of print() and print ""

cant download

when i give a download number to katastrophe software can't download and return this error

Traceback (most recent call last):
File "/usr/local/bin/katastrophe", line 9, in
load_entry_point('katastrophe==1.1.9', 'console_scripts', 'katastrophe')()
File "/usr/local/lib/python2.7/dist-packages/katastrophe/katastrophe.py", line 193, in main
music_torrent()
File "/usr/local/lib/python2.7/dist-packages/katastrophe/latest.py", line 282, in music_torrent
download_torrent('https://kat.cr' + torrent_href[(int(serial) + 30) - 1],music[int(serial) - 1][1])
File "/usr/local/lib/python2.7/dist-packages/katastrophe/latest.py", line 35, in download_torrent
subprocess.Popen(['xdg-open', mag[torrent - 1]],
NameError: global name 'mag' is not defined

Using Linux Mint 17.1 Rebecca
Release: 17.1
Codename: rebecca
mint rebeca 17.1 = ubuntu trusty

and Python 2.7.6

requests exceptions SSLError while searching

Just installed using PIP. When I tried to search it ended up with the following error.

Traceback (most recent call last):
  File "/usr/local/bin/katastrophe", line 9, in <module>
    load_entry_point('katastrophe==2.0.1', 'console_scripts', 'katastrophe')()
  File "/usr/local/lib/python2.7/dist-packages/katastrophe/katastrophe.py", line 235, in main
    table = fetch(query, page)
  File "/usr/local/lib/python2.7/dist-packages/katastrophe/katastrophe.py", line 92, in fetch
    source_code = requests.get(link)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in get
    return request('get', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 385, in send
    raise SSLError(e)
requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Screenshot:

katastrophe

OS: Linux - Ubuntu 14.04
Python: 2.7.6
PIP: 8.1.2

"pip install katastrophe" does not install docopt automatically

...
Successfully built katastrophe tabulate
Installing collected packages: beautifulsoup4, tabulate, requests, lxml, katastrophe
Successfully installed beautifulsoup4-4.4.1 katastrophe-1.0.2 lxml-3.6.0 requests-2.10.0 tabulate-0.7.5

(KATAST~1) C:\Users\User1>katastrophe --version
Traceback (most recent call last):
  File "c:\python27\Lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27\Lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Users\User1\_PYTHO~1\KATAST~1\Scripts\katastrophe.exe\__main__.py", line 5, in <module>
  File "c:\users\user1\_pytho~1\katast~1\lib\site-packages\katastrophe\__init__.py", line 1, in <module>
    from katastrophe import main
  File "c:\users\user1\_pytho~1\katast~1\lib\site-packages\katastrophe\katastrophe.py", line 22, in <module>
    from docopt import docopt
ImportError: No module named docopt

Can't run Katastrophe

$ pip install katastrophe
Collecting katastrophe
  Downloading katastrophe-1.1.3.zip
Collecting beautifulsoup4 (from katastrophe)
  Downloading beautifulsoup4-4.4.1-py3-none-any.whl (81kB)
    100% |████████████████████████████████| 81kB 1.4MB/s 
Collecting tabulate (from katastrophe)
  Downloading tabulate-0.7.5.tar.gz
Collecting requests (from katastrophe)
  Downloading requests-2.10.0-py2.py3-none-any.whl (506kB)
    100% |████████████████████████████████| 507kB 1.0MB/s 
Collecting lxml (from katastrophe)
  Downloading lxml-3.6.0.tar.gz (3.7MB)
    100% |████████████████████████████████| 3.7MB 144kB/s 
Collecting docopt (from katastrophe)
  Downloading docopt-0.6.2.tar.gz
Installing collected packages: beautifulsoup4, tabulate, requests, lxml, docopt, katastrophe
  Running setup.py install for tabulate
  Running setup.py install for lxml
  Running setup.py install for docopt
  Running setup.py install for katastrophe
Successfully installed beautifulsoup4-4.4.1 docopt-0.6.2 katastrophe-1.1.3 lxml-3.6.0 requests-2.10.0 tabulate-0.7.5
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Running katastrophe -h results in:

Traceback (most recent call last):
  File "/Users/M/.pyenv/versions/3.5.1/bin/katastrophe", line 9, in <module>
    load_entry_point('katastrophe==1.1.3', 'console_scripts', 'katastrophe')()
  File "/Users/M/.pyenv/versions/3.5.1/lib/python3.5/site-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/M/.pyenv/versions/3.5.1/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/Users/M/.pyenv/versions/3.5.1/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/Users/M/.pyenv/versions/3.5.1/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/M/.pyenv/versions/3.5.1/lib/python3.5/site-packages/katastrophe/__init__.py", line 1, in <module>
    from katastrophe import main
ImportError: cannot import name 'main'

Note: I've downloaded the Vuse Leap client

Feature request

Can you add support for slice so i can do :: to download them all?

--verifyssl=false

hello,

it still not working.

when i type katastrophe --verifyssl=false, it return

Usage:
katastrophe
katastrophe [-m | -t | -a | -s | -l | -g | -p | -b | -x | -M | -T | -A | -S | -B | -G | -P | -X]
katastrophe -h | --help
katastrophe --version
Multi Download:
i,j From Serial No. i to Serial No. j
,i From Serial No. 1 to Serial No. i
i, From Serial No. i to serial no 25
i,j,... Multiple Serial Numbers

cannot install on ubuntu 16.04

hello,

this is what i got on my terminal when trying to install katastrophe

Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: bencode, bitstring, docopt, lxml, katastrophe
Exception:
Traceback (most recent call last):
File “/home/sugiono/.local/lib/python2.7/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/home/sugiono/.local/lib/python2.7/site-packages/pip/commands/install.py”, line 317, in run
prefix=options.prefix_path,
File “/home/sugiono/.local/lib/python2.7/site-packages/pip/req/req_set.py”, line 742, in install
**kwargs
File “/home/sugiono/.local/lib/python2.7/site-packages/pip/req/req_install.py”, line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File “/home/sugiono/.local/lib/python2.7/site-packages/pip/req/req_install.py”, line 1032, in move_wheel_files
isolated=self.isolated,
File “/home/sugiono/.local/lib/python2.7/site-packages/pip/wheel.py”, line 346, in move_wheel_files
clobber(source, lib_dir, True)
File “/home/sugiono/.local/lib/python2.7/site-packages/pip/wheel.py”, line 317, in clobber
ensure_dir(destdir)
File “/home/sugiono/.local/lib/python2.7/site-packages/pip/utils/init.py”, line 83, in ensure_dir
os.makedirs(path)
File “/usr/lib/python2.7/os.py”, line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: ‘/usr/local/lib/python2.7/dist-packages/bencode’

are there any easy way to install? thanks

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.