I'm trying to automate a personal tool that watches for new talk-groups popping up on a control channel. Part of that process is helped dramatically by knowing which talk-groups are already documented in the RRDB for say Ohio MARCS-IP. I'm currently doing it manually with my account, saving the .csv on my mac, and then scp'ing that file over to the linux box. But I'd like to setup a cron job on the linux box to occasionally grab the .csv.
I've tried some iterations of this but it's never saving a cookie nor does it obviously download the .csv file:
I've tried some iterations of this but it's never saving a cookie nor does it obviously download the .csv file:
https://www.radioreference.com/apps/db/?action=csv&sid=6643&opt=tgwget --debug --save-cookies cookies.txt --keep-session-cookies \
--post-data 'username=FOO&password=BAR&remember=checked' \
https://www.radioreference.com/apps/login/
wget --load-cookies cookies.txt \
-O marcs-tgs.csv \
https://www.radioreference.com/apps/db/?action=csv&sid=6643&opt=tg
https://www.radioreference.com/apps/db/?action=csv&sid=6643&opt=tg