Version : 1.0
Author : Gadila Shashank Reddy
This simple python script is a wrapper over openload movies and helps to explore , search and download movies all in a single package via a command line interface.
This script is supposed to work on all UNIX based systems (GNU-Linux, Mac...) I haven't tested this on Windows.
Python3 is only supported. Not tested on python2. The dependencies of this script are
-
- This requires PhantomJS. See here
Inbuilt libraries used. Make sure these are importable.
- argparse
- os
- time
- unquote and urlparse from urllib.parse
- webbrowser
$ python3 movie.py -h
usage: movie.py [-h] [-d] [[-g [G] | -y [Y] | -s [S [S ...]]] [-f | -t | -p]
Openload Movies wrapper
optional arguments:
-h, --help show this help message and exit
-d Optional flag to download if possible
-g [G] Specify a genre
-y [Y] Specify a release year
-s [S [S ...]] Search a movie
-f Featured Movies
-t Top Rated Movies
-p Popular/Most viewed Movie
-m OpenLoad movies listUsing the script is pretty simple. Some examples are given.
- Some usage examples. Note the multi worded search.
$ python3 movie.py -f
$ python3 movie.py -f -d
$ python3 movie.py -g adventure
$ python3 movie.py -y 2009
$ python3 movie.py -s avengers infinity war- Default interface to select a movie to watch/download
Typical results when using the search function.
28**************************************************
Beyond The Sky (2018)
IMDb N/A
**************************************************
29**************************************************
The Perfect Bride: Wedding Bells (2018)
IMDb 6.6
**************************************************
30**************************************************
Eyes In The Hills (2018)
IMDb N/A
**************************************************
Enter number to watch the movie or 0 for next pageTypical results otherwise.
28**************************************************
Ready Player One (2018)
CAM | 7.4 stars
**************************************************
29**************************************************
Sherlock Gnomes (2018)
CAM | 8.7 stars
**************************************************
30**************************************************
A Wrinkle in Time (2018)
TS | 5.3 stars
**************************************************
Enter a number to load that movie or 0 to load next pageThe only difference in both these type of results is the presence of picture quality. In both cases, the rating is out of 10 stars.
At the prompt if you enter 0 then the next page is loaded (if present) and if you input a valid movie number, then the script initiates download if the "-d" flag is specified else there's another yes/no confirmation to download the movie. If y/Y is entered then again download is initiated else the movie is openend in a new browser tab.
All downloads happen in the directory where the script resides.
5 wrong inputs terminates the script.
This script has been developed and tested on python 3.7.0 running on an Arch Linux x86_64 machine and is expected to run on python 3.5.x and above.
Incase of any issue with script, do raise an issue on the repository.
Thanks for using the script :)