Use a single wikipedia's lists of radio stations page to retrieve email contact of radios. Use wikipedia's list, retrieve available radio's wiki, and find their website through radio station infobox. For each search, generate 2 csv file, a *.template
with info extracted radio site from wikipedia, and a *.csv
, which store search result of radio websites with radio's mails.
Warning: Use python 3.6 or higher.
pip install -r requirements.txt
radio_parser.py [-h] (-w title | --radio-wiki radio | --csv filename | -s site) [-v] [--workdir dir] [-l wiki-language]
Program to perform a search from a wikipedia page title, a csv file (*.template
), a radio website etc.
See --help
for available options.
./radio_parser.py --wiki-title "List of radio stations in the United Kingdom"
--> Perform search of "List of radio stations in the United Kingdom" page, search radios website and store resulte in .template
,
and use this template to search radio's contact.
./radio_parser.py --csv "List of radio stations in the United Kingddom.template"
--> Perform search of radio's contact on already parsed wikipedia list of radio stations.