Skip to content

kj4z/standings2db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

standings2db

Converts Wayback Machine DXCC Standings Archives to MySQL DB tables

Quickstart Guide

  1. Create your MySQL database. I called mine "dxcc" but if you want to use a different name, update parser.py accordingly.
  2. Run mysql.sql against your new database to create the dxcc_hr table. Something like mysql -u <user> -p -h <host> <database> < mysql.sql
  3. Grant access permissions. Probably something like this.

CREATE USER 'dxcc'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON dxcc.* to 'dxcc'@'%'; FLUSH PRIVILEGES;

  1. Create a dxcc directory to hold downloaded PDF files.
  2. Make sure your MySQL settings are correct in parser.py.
  3. Run downloader.py: ./downloader.py
  4. Run parser.py: ./parser.py
  5. 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;

About

Converts Wayback Machine DXCC Standings Archives to MySQL DB tables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages