Is it possible to wget a talk-group .csv file after logging in?

Status
Not open for further replies.

northernsummit

Member
Feed Provider
Joined
Jul 10, 2009
Messages
289
Location
Macedonia, Ohio
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:

wget --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
https://www.radioreference.com/apps/db/?action=csv&sid=6643&opt=tg
 
Status
Not open for further replies.
Top