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 AM broadcast band (530 kHz to 1700 kHz). 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 ]