65 lines
2.2 KiB
Markdown
65 lines
2.2 KiB
Markdown
|
# qrz
|
||
|
|
||
|
## Summary
|
||
|
|
||
|
qrz is a small program that frs identifiers from hamstation.eu to database.
|
||
|
Currently WIP
|
||
|
|
||
|
## Howto
|
||
|
|
||
|
### Build
|
||
|
|
||
|
```bash
|
||
|
go build
|
||
|
```
|
||
|
|
||
|
### Sample config in qrz.ini
|
||
|
|
||
|
```ini
|
||
|
[qrz]
|
||
|
db_hostname="localhost"
|
||
|
db_name="database"
|
||
|
db_username="username"
|
||
|
db_password="password"
|
||
|
db_schema="CREATE TABLE qrz (qrz VARCHAR(25) PRIMARY KEY, name VARCHAR(25), address VARCHAR(50), city VARCHAR(25), zipcode VARCHAR(25), dept VARCHAR(25), country VARCHAR(25)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
|
||
|
frs_url="http://groupe-frs.hamstation.eu/index_qrz_liste_14.htm"
|
||
|
frs_xpath="//tr"
|
||
|
frs_regex="^[0-9]{1,4}\s[A-Z]{1,4}\s[0-9]{1,4}"
|
||
|
```
|
||
|
|
||
|
### Run
|
||
|
|
||
|
```bash
|
||
|
./qrz -configfile qrz.ini
|
||
|
```
|
||
|
|
||
|
## License
|
||
|
|
||
|
```text
|
||
|
Copyright (c) 2019, PaulBSD
|
||
|
All rights reserved.
|
||
|
|
||
|
Redistribution and use in source and binary forms, with or without
|
||
|
modification, are permitted provided that the following conditions are met:
|
||
|
|
||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||
|
list of conditions and the following disclaimer.
|
||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||
|
this list of conditions and the following disclaimer in the documentation
|
||
|
and/or other materials provided with the distribution.
|
||
|
|
||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
|
||
|
The views and conclusions contained in the software and documentation are those
|
||
|
of the authors and should not be interpreted as representing official policies,
|
||
|
either expressed or implied, of the fuelprices project.
|
||
|
```
|