This utility is provided compliments of the Federal Communications Commission (FCC), and is in the public domain. It is an example of a good use of our hard-earned tax money. Thanks to the good folks at the FCC.
If the script does not work for you , please use the one on the FCC website:
AM stations, FM stations, TV stations
Search for radio station information in the FM broadcast band (88 MHz to 108 MHz). You may request one-line-per-record list output, or more detailed "query" output. The data files used for this query are updated each morning.
Selection of a TEXT output option allows the user to generate a formatted output table which can be imported into other programs. Text tables do not contain all CDBS data fields, but include the values most commonly sought by users. Save the screen output as a text (.txt) file.
For a list of stations authorized to transmit both analog and digital signals, use the following links instead of the AM Query: [ AM | FM ]
Note on the pre-2000 "VAX flat file" format option above: To retrieve all data, choose no other options (may take several minutes to download). Save the screen output as a text (.txt) file. Or you may retrieve the current data in a zipped file [ Layout ]. This format is intended for use with software used prior to 2000. We do not recommend development of new software using this format since some fields are truncated and some data is not complete.