/mixtape

Play a random mixtape from the hiphopmixtapes collection at archive.org

Primary LanguagePython

mixtape

Archive.org has begun cataloging thousands of mixtapes from various collections on the web. This python script utilizes Archive.org's internetarchive python module to grab mixtapes to play through mplayer. Users can choose to either hear a random mixtape or select a mixtape from an artist search.

dependencies

[internetarchive] (https://internetarchive.readthedocs.io/en/latest/installation.html)
[mplayer] (http://www.mplayerhq.hu/design7/news.html)

instructions

  1. Download mplayer for your distribution/OS
  2. Register for an account at archive.org
  3. pip install internetarchive
  4. ia configure
  5. git clone https://github.com/relaytheurgency/mixtape.git
  6. cd mixtape && ./mixtape.py

caveats

I have included a bash script for those that don't want to register at archive.org. The caveat here is that this script uses a pretty sloppy curl and is not guaranteed to work for any forseeable future. To use the bash script just clone the repo and execute as you would any other script. It only requires mplayer if you're on linux. If you are on OS X you will need to brew install coreutils

future work

  • Command line options for things like continuous play of random tapes
  • Create mixtape from individual songs pulled from other mixtapes by criteria (artist, year, genre)
  • Better formatting
  • Bundle for pip install
  • Versions for python 2.x and 3.x that don't require hacky workarounds