GrabbySub2.0 - Grab your sub from the terminal, and grab the right one! โ๏ธ ๐ฅ ๐
GrabbySub is a small little tool for you ๐ฆ/๐บ lovers out there who hates scrolling through all hundreds of choices just to find the right language, resolution and uploading version.
I technically live in the terminal, so I really find it painful to go through all the old school web browsing just to get my movie subtitle whenever I decide to relax. With that, I decided to write a little script to help me get my subtitle faster and also learn a thing or two from that. This is essentially just a learning tool for me, but if it improves my movie watching experience throughout the process, who cares?.
The first version was written in Bash and so as handy as it was, it wasn't really that swift and user-friendly. Thus, GrabbySub2 is born, built on Python this time. The loading speed is greatly improved, with a much more pleasant user interacting interface.
With this update, it truly transformed that sub grabbing process. You just call up the sub-servant, type in your movie/show, pick the specs and bam! You got yourself the right sub. Subscene has the right idea with the open-contribution community, which allows for precision. However, the precision should really come with ease.
Python
- If you didn't have it already, you should download it.Pip
- The python module downloaderPup
- HTML parser for shell
We first needs to download a couple of stuffs first
Open terminal and type:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python
curl -s -L 'https://bootstrap.pypa.io/get-pip.py' -O
python get-pip.py
apt-get install python -y
curl -s -L 'https://bootstrap.pypa.io/get-pip.py' -O
python get-pip.py
yum install python
curl -s -L 'https://bootstrap.pypa.io/get-pip.py' -O
python get-pip.py
sudo pip install beautifulsoup4 zipfile re requests
If you have Go installed, use:
go get github.com/ericchiang/pup
For OS X users, use
brew install https://raw.githubusercontent.com/EricChiang/pup/master/pup.rb
To build from source, visit pup's repo and download your correct version.
Note: The packages differ from machine to machine. You might have already gotten them, some people haven't so it doesn't hurt to go through this process just to make sure it runs swiftly.
alias grabby='python ~/Downloads/Grabby2.0.py'
Open up terminal, go to your movie directory, and just run grabby
Your language might not be included, or maybe you want to add some vendor specific stuffs like (HDTV, YIFY, DEMAND...) in the res section, don't worry, just do this:
Just fire up your text editor, search for the pattern: language = [
and add your language there, in quotes of course.
E.g:
language = ["English","Chinese","Arabian","French","Spanish","Danish","German","Vietnamese","etc...."]
Do the same with language, but this time search for: res = [
and add your resolution there.
res = ["480p","720p","1080p","HDTV","JYK","etc..."]
-
Even faster โ The current version isn't so bad. Version 2.0 runs on python so it's almost double the speed of the first one which was as slow as a bash script can get
-
Work on a GUI, integrate into a small handy taskbar/dock utility which improves users' experience...
-
... Suggestions โ
If you have any questions, shoot me a message at [email protected]
As always, thanks for reading/using/checking out/frowning ๐น ๐ ๐ซ ๐ฉ
All done! Enjoy!