Skip to content

Instantly share code, notes, and snippets.

@nickzuck
nickzuck / Index of Downloader.py
Last active October 25, 2018 05:14
Program to donwload mp3 songs from Index of directories
# Author: Nikhil Kumar Singh(nickzuck_007)
# Date : 6th May 2018
# Updated: 25th Oct 2018
# Description: Download all the songs on an index page, with urls in urls array
from bs4 import BeautifulSoup
from urlparse import urlparse
import requests
import os
import time
#!/usr/bin/env python
#
# Converts any integer into a base [BASE] number. I have chosen 62
# as it is meant to represent the integers using all the alphanumeric
# characters, [no special characters] = {0..9}, {A..Z}, {a..z}
#
# I plan on using this to shorten the representation of possibly long ids,
# a la url shortenters
#