PyShoutcast is an online radio crawler on shoutcast.com. Created in python, it should be able to retrieve radio infos without going to the website in a browser a clicking several times 'Show more' button. Of course, visiting shoutcast.com has its advantages, so look at this script as pythonic fun ;)
You can grab version 0.4 from here
From the source:
python setup.py install
or just run it directly as any other script:
python pyshoutcast.py
Main Help
Usage: pyshoutcast.py [OPTIONS] A python based crawler for shoutcast.com Options: --version show program's version number and exit -h, --help show this help message and exit -m, --list-main-genres List main available genres -s main_genre_id, --list-secondary-genres=main_genre_id List secondary genres under a main one. Provide the genre id or the name for it. -g genre_name, --get-radio=genre_name Get the radios under a genre name. -e, --export Exports the result to a csv file (Available only for -g).
Main Sections
$ python pyshoutcast.py -m
Using main id or main name
$ python pyshoutcast.py -s 265 OR $ python pyshoutcast.py -s 'Seasonal/Holiday'
Getting info
$ python pyshoutcast.py -g Smooth Jazz
Add -e option
$ python pyshoutcast.py -g Smooth Jazz -e