Package: nwanime_dl
# nwanime-dl Anime Downloader## Downloads anime from http://www.nwanime.com/[![Supported Python versions](https://pypip.in/py_versions/nwanime_dl/badge.svg)](https://pypi.python.org/pypi/<nwanime_dl>/)[![License](https://pypip.in/license/nwanime_dl/badge.svg)](https://pypi.python.org/pypi/nwanime_dl/)[![Development Status](https://pypip.in/status/nwanime_dl/badge.svg)](https://pypi.python.org/pypi/nwanime_dl/)###Note: Currently works only for linux and mac as it uses wget for the final download.###Edit: It works with windows too, provided the steps mentioned below under "Windows Specific Instructions" are followed.###Installation:git clone this repo. then run```python setup.py install```or```pip install nwanime-dl```###Windows Specific Instructions:1. You will need to add ```c:\python27\Scripts``` or equivalent location to your path variable. Learn how to do that [here](http://www.computerhope.com/issues/ch000549.htm).Look at the other entries for pointers on formatting.2. Download [Wget for windows](http://gnuwin32.sourceforge.net/packages/wget.htm) and rename the file to wget.exe(notice the lowercase 'w'). Place wget.exe in some directory and add that to the PATH variable as well.3. In the environment variables, open PATHEXT and add ```;.``` at the end. This means extensionless files will be considered executables.4. the setup drops a script called 'nwanime-dl' in the ```python27\scripts``` directory. To be able to access and run this script from the command line, run the following commandsin an elevated command prompt(command prompt in administrator mode)```assoc .=Python.Fileftype Python.File=c:\Python27\python.exe "%1" %*```5. restart the computer.###Dependencies:1. Requests library2. Beautifulsoup library3. wget4. lxmlThese are automatically installed if you use pip.###Usage:```usage: nwanime-dl [-h] [-i ITERATIVE] [-d DIRECTORY] urlDownloads anime from nwanime.compositional arguments:url                   url to download video from. In case of iterativestarting url. "continue" to continue from lastdownloaded file in directory.optional arguments:-h, --help            show this help message and exit-i ITERATIVE, --iterative ITERATIVEFor range downloads. eg. nwanime-dl -i 10 <url> willdownload iteratively the video in <url> and the next 9videos(total 10)-d DIRECTORY, --directory DIRECTORYExplicitly specify output directory. Current directoryby default.```###common patterns:Download episode and 9 next episodes.```nwanime-dl -i 10 http://www.nwanime.com/.../video/eb...2/```Download next episode after last downloaded episode in directory.(works only if nwanime-dl has downloaded to this directory before.)```nwanime-dl continue```Continue and keep going till 10 episodes```nwanime-dl -i 10 continue```###Example:```$ nwanime-dl -i 10 http://www.nwanime.com/nanatsu-no-taizai-episode-8/video/a791265c48f25acd0c33/Nanatsu no Taizai Episode 8fetching mirrorsmirrors founddownloadable mirror foundattempting download from VidWoot--2015-01-14 09:08:56--  http://stream.vidcache.net/bd472ce9e372e6ece2a31f1b499231ad27b492e1.mp4?client_file_id=868256Resolving stream.vidcache.net (stream.vidcache.net)... 162.211.92.135, 162.211.92.144, 162.211.92.132, ...Connecting to stream.vidcache.net (stream.vidcache.net)|162.211.92.135|:80... connected.HTTP request sent, awaiting response... 302 Moved TemporarilyLocation: http://s17.vidcache.net/stream/bd472ce9e372e6ece2a31f1b499231ad27b492e1?client_file_id=868256&redirected_from=s23.vidcache.net [following]--2015-01-14 09:08:57--  http://s17.vidcache.net/stream/bd472ce9e372e6ece2a31f1b499231ad27b492e1?client_file_id=868256&redirected_from=s23.vidcache.netResolving s17.vidcache.net (s17.vidcache.net)... 199.87.232.131Connecting to s17.vidcache.net (s17.vidcache.net)|199.87.232.131|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 57291492 (55M) [video/mp4]Saving to: ‘Nanatsu no Taizai Episode 8.mp4’99% [==========================================> ] 5,72,55,778 71.2KB/s   in 13m 6s.....................2015-01-14 16:57:08 (14.5 KB/s) - Connection closed at byte 29901248. Retrying.--2015-01-14 16:57:10--  (try: 3)  http://s29.vidcache.net/stream/6145b72c88ffcfd8ed763b450fe9e6667c2b43db?client_file_id=903136&redirected_from=s23.vidcache.netConnecting to s29.vidcache.net (s29.vidcache.net)|162.211.92.141|:80... connected.HTTP request sent, awaiting response... 200 OKLength: unspecified [text/xml]Saving to: ‘Nanatsu no Taizai Episode 13.mp4’[ <=>                                        ] 4,436       --.-K/s   in 0s2015-01-14 16:57:18 (9.92 MB/s) - ‘Nanatsu no Taizai Episode 13.mp4’ saved [29901248]******************************Nanatsu no Taizai Episode 8	DoneNanatsu no Taizai Episode 9	DoneNanatsu no Taizai Episode 10	DoneNanatsu no Taizai Episode 11	DoneNanatsu no Taizai Episode 12	DoneNanatsu no Taizai Episode 13	Done******************************```### to do:1. setuptools compatibility   [X]2. setuptools command line script   [X]3. range downloader    [X]4. reports on undownloadable episodes and undiscovered mirrors5. windows and python 3 support6. -D option for explicitly specifying output directory    [X]7. Pick only SUbbed mirrors    [X]8. Per directory continue feature    [X]special thanks to [Derrick Kearney](https://github.com/diek) for helping me test it .PS:(Shameless plug)if you are using vlc to play these files and are missing a play next/prev file feature.. try [vlcwrapy-nix](https://github.com/thekindlyone/vlcwrapy-nix)