Package: khinsider
khinsider.pyThis is a modified version of khinisder.py with an
explicit focus of being easy to upload to and install
from PyPI. Please go support the original release:https://github.com/obskyr/khinsiderkhinsider.pyis aPythoninterface for gettingkhinsidersoundtracks. It makes khinsider mass downloads a breeze. It's easy to use - check it!From the command line:khinsider.py jumping-flashAs an import:importkhinsiderkhinsider.download('jumping-flash')# And bam, you've got the Jumping Flash soundtrack!For anime music,check outthehylia.py.Carefully put together by@obskyr!Download it here!UsageJust runkhinsider.pyfrom the command line with the sole parameter being the soundtrack you want to download. You can either use the soundtrack's ID, or simply copy its entire URL. Easy!If you want, you can also add another parameter as the output folder, but that's optional.You can also download other file formats (if available), like FLAC or OGG, as following:khinsider.py --format flac mother-3If you don't want to go to the actual site to look for soundtracks, you can also just type a search term as the first parameter(s), and provided it's not a valid soundtrack,khinsider.pywill give you a list of soundtracks matching that term.You're going to needPython(if you don't know which version to get, choose the latest version of Python 3 -khinsider.pyworks with both 2 and 3), so install that (andadd it to your path) if you haven't already.You will also need to havepipinstalled (if you have Python 3, it is most likely already installed - otherwise, downloadget-pip.pyand run it) if you don't already haverequestsandBeautiful Soup 4. The first timekhinsider.pyruns, it will install these two for you.For more detailed information, try runningkhinsider.py --help!As a modulekhinsider.pyrequires two non-standard modules:requestsandbeautifulsoup4. Just run apip installon them (withpip), or just runkhinsider.pyon its own once and it'll install them for you.Here are the main functions you will be using:khinsider.download(soundtrackName[, path="", makeDirs=True, formatOrder=None, verbose=False])Download the soundtracksoundtrackName. This should be the name the soundtrack uses at the end of its album URL.Ifpathis specified, the soundtrack files will be downloaded to the directory that path points to.IfmakeDirsisTrue, the directory will be created if it doesn't exist.You can specifyformatOrderto download soundtracks in specific formats.formatOrder=['flac', 'mp3'], for example, will download FLACs if available, and MP3s if not.IfverboseisTrue, it will print progress as it is downloading.khinsider.search(term)Search khinsider forterm. Return a list ofSoundtracks matching the search term. You can then accesssoundtrack.idorsoundtrack.url.MoreThere's a lot more detail to the API - more than would be sensible to write here. If you want to usekhinsider.pyas a module in a more advanced capacity, have a look at theSoundtrack,Song, andFileobjects in the source code! They're documented properly there for your reading pleasure.Talk to me!You can easily get to me in these ways:@obskyron Twitter!E-mailme!I'd love to hear it if you likekhinsider.py! If there's a problem, or you'd like a new feature, submit an issue here on GitHub.