Converts Wayback Machine DXCC Standings Archives to MySQL DB tables
- Create your MySQL database. I called mine "dxcc" but if you want to use a different name, update parser.py accordingly.
- Run
mysql.sql
against your new database to create thedxcc_hr
table. Something likemysql -u <user> -p -h <host> <database> < mysql.sql
- Grant access permissions. Probably something like this.
CREATE USER 'dxcc'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON dxcc.* to 'dxcc'@'%'; FLUSH PRIVILEGES;
- Create a
dxcc
directory to hold downloaded PDF files. - Make sure your MySQL settings are correct in parser.py.
- Run downloader.py:
./downloader.py
- Run parser.py:
./parser.py
- Connect to MySQL and run your queries. Here's one to get you started:
select report_date,mode,dxcc_count,count(*) as count from dxcc_hr WHERE filename like '%USLetter%' group by dxcc_count,mode,report_date order by report_date,mode,dxcc_count desc;