Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added poetry as an environment package #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ The fullset of funcitonality offered by this is:


### Installation
```sh
$ pip3 install -r requirements.txt
```
$ pip install poetry
$ poetry install
```

### Usage

##### Download Playlist or Album from Web URL
```
$ python3 Download.py
$ poetry run python run.py
$ Paste the URL: https://www.jiosaavn.com/album/tum-hi-aana-from-marjaavaan/j9bfphC2728_
```

Expand All @@ -32,34 +33,34 @@ $ Paste the URL: https://www.jiosaavn.com/album/tum-hi-aana-from-marjaavaan/j9bf

#### Download All Albums of an Artist
```
$ python Download.py -artist --album
$ poetry run python run.py -artist --album
$ Paste the URL of Artist Profile: https://www.jiosaavn.com/artist/babbal-rai-albums/pRd5ZTGrLv8_
```

#### Download All Songs of an Artist
```
$ python Download.py -artist --song
$ poetry run python run.py -artist --song
$ Paste the URL of Artist Profile: https://www.jiosaavn.com/artist/babbal-rai-albums/pRd5ZTGrLv8_
```


#### Download All Playlist from your profile
```
$ python3 Download.py -p
$ poetry run python run.py -p
$ Enter your Email: your_saavn_email
$ Enter your Password: your_saavn_password
```

#### Download All Albums from your profile
```
$ python3 Download.py -a
$ poetry run python run.py -a
$ Enter your Email: your_saavn_email
$ Enter your Password: your_saavn_password
```

#### Download All JioSaavn Originals or Podcast Shows from your profile
```
$ python3 Download.py -s
$ poetry run python run.py -s
$ Enter your Email: your_saavn_email
$ Enter your Password: your_saavn_password
```
Expand Down
Empty file added downloader/__init__.py
Empty file.
7 changes: 2 additions & 5 deletions Download.py → downloader/download.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import ast
import base64
import html
import json
Expand All @@ -7,15 +6,14 @@
import urllib.request
import sys

import logger
import requests
import urllib3.request
from bs4 import BeautifulSoup
from mutagen.mp4 import MP4, MP4Cover
from pySmartDL import SmartDL
from requests.packages.urllib3.exceptions import InsecureRequestWarning

from pyDes import *
from downloader.pyDes import *

# Pre Configurations
urllib3.disable_warnings()
Expand Down Expand Up @@ -386,8 +384,7 @@ def downloadSongs(songs_json, album_name='songs', artist_name='Non-Artist'):
print('Download Error' + str(e))


if __name__ == '__main__':
album_name = "songs"
def main():

if len(sys.argv) > 1 and sys.argv[1].lower() == "-p":
downloadAllPlayList(getLibrary())
Expand Down
File renamed without changes.
Loading