Release 0.1

This commit is contained in:
Ritiek Malhotra
2016-07-19 10:31:39 +05:30
committed by GitHub
parent 7e22124e61
commit 11c1a32d96

View File

@@ -4,44 +4,53 @@ My first GitHub Repository (sorry for any mistakes)
This python script allows downloading songs from youtube by just entering the name of the song This python script allows downloading songs from youtube by just entering the name of the song
and the artist in mp3 extension. and the artist in mp3 extension.
![alt tag](https://camo.githubusercontent.com/3f4374e9ad1b1ec21994cd564385ec8501751b4f/687474703a2f2f692e696d6775722e636f6d2f6c57794132706a2e706e67)
## Dependencies:
# Dependencies:
``` ```
pip install mechanize pip install mechanize
pip install bs4 pip install bs4
pip install pafy pip install pafy
``` ```
[OPTIONAL] If you want to convert downloaded music to mp3 (from m4a) install avconv for linux or ffmpeg from https://ffmpeg.zeranoe.com/builds/ for windows and then place the ffmpeg.exe in your script folder:
``` ```
sudo apt-get install ffmpeg sudo apt-get install libav-tools
or download from https://ffmpeg.zeranoe.com/builds/ for windows and place the ffmpeg.exe in your script folder or download from https://ffmpeg.zeranoe.com/builds/ for windows
``` ```
## Installation & Usage:
# Installation & Usage:
``` ```
git clone https://github.com/Ritiek/YTMusic git clone https://github.com/Ritiek/YTMusic
cd YTMusic cd YTMusic
sudo python YTMusic.py sudo python YTMusic.py
``` ```
or you can also install from pypi using:
# Commands that can be used in the script:
``` ```
2. play - will play the last song downloaded using default music player pip install YT_Music
3. gg - exit the script ```
4. spotify - downloads songs from spotify playlist (see below:) Run it using:
```
YTMusic
```
## Commands that can be used in the Script:
```
• play - will play the last song downloaded using default music player
• spotify - downloads songs from spotify playlist (see below:)
• convert - will convert all your m4a songs into mp3
• exit - exit the script
``` ```
# Downloading Music from Spotify: ## Downloading Music from Spotify:
![alt tag](https://camo.githubusercontent.com/f8a671460df2d56ec52701db69c6c5c3ca685e94/687474703a2f2f692e696d6775722e636f6d2f3064716c59707a2e706e67)
• To download music from spotify playlists goto http://www.playlist-converter.net/ and login to your spotify account and choose the playlist you want to download. Let it grab the tracks and then click on Export to free text.
1. To download music from spotify playlists goto http://www.playlist-converter.net/ and login to your • Copy the songs list and create a new text file spotify.txt in your Music directory and paste the songs list.
spotify account and choose the playlist you want to download. Let it grab the tracks and then click ```
on ```Export to free text```. cd YTMusic/Music
2. Copy the songs list and create a new text file ```spotify.txt``` in your Music directory and paste the sudo nano spotify.txt
songs list. [paste your songs here then ctrl+o, enter, ctrl+x]
3. Use the command ```spotify``` in the script to start downloading the list. sudo chmod 775 spotify.txt
```
# Known bugs: • Use the command spotify in the script to start downloading the list.
1. Fails to download songs containing accents (that is, characters like 'Ø' in song like 'BØRNS Seeing Stars') ## Disclaimer:
in the Youtube's video title. Downloading Copyright Music may be illegal in your country. Please support the artists by buying their Music.