Skip to content

Commit

Permalink
Version 0.8 beta is ready for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWeirdDev committed Nov 30, 2019
1 parent 5f74449 commit 92fa6fc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
16 changes: 12 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PacktPub Video Downloader (PVdl)
# PacktPub Video Downloader (pvdl)

The Easiest way to download any Packt video tutorial

Expand All @@ -16,16 +16,24 @@ The Easiest way to download any Packt video tutorial
Clone this repository, install requirements and run the script. For example:

```bash
chmod +x ./PVdl.py
chmod +x ./pvdl.py
pip --user install -r requirements.txt

./PVdl.py -u [email protected] -p Passw0rd -l "https://subscription.packtpub.com/video/programming/9781788834995"
./pvdl.py -u [email protected] -p Passw0rd -l "https://subscription.packtpub.com/video/programming/9781788834995"
```

or install pvdl using pip:

```bash
pip --user install pvdl

pvdl -u [email protected] -p Passw0rd -l "https://subscription.packtpub.com/video/programming/9781788834995"
```

Usage:

```
usage: PVdl.py [-h] [-u USERNAME] [-p PASSWORD] [-r RATE_LIMIT] [-l LINK]
usage: pvdl.py [-h] [-u USERNAME] [-p PASSWORD] [-r RATE_LIMIT] [-l LINK]
PacktPub Video Downloader
Expand Down
Empty file added __init__.py
Empty file.
12 changes: 6 additions & 6 deletions PVdl.py → pvdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,9 @@ def start_download(username, password, vid_id, limit_rate):

get_chapters(vid_id, limit_rate)


if __name__ == "__main__":
def main():
try:
parser = argparse.ArgumentParser(description='PacktPub Video Downloader', prog="PVdl.py")
parser = argparse.ArgumentParser(description='PacktPub Video Downloader', prog="pvdl.py")
required_args = parser.add_argument_group('required arguments')
required_args.add_argument('-u', '--username', help='Your Packt Username')
required_args.add_argument('-p', '--password', help='Your Password')
Expand Down Expand Up @@ -231,7 +230,8 @@ def start_download(username, password, vid_id, limit_rate):
print("Interrupted")
exit(1)





if __name__ == "__main__":
main()


0 comments on commit 92fa6fc

Please sign in to comment.