The gcget does not work.
I see the content from the html page.
I don't find the bug in the source.
ClientForm is now in the mechanize project. (saw on the website)
Confirmed gcget no longer works.
Geocaching have changed their website:
Thus the script does not handle the new layout.
So far this diff gets html with the new 'sign in' method.
< b.follow_link(text="Log in")
> #b.follow_link(text="Log in")
< b["ctl00$ContentBody$myUsername"] = USER
< b["ctl00$ContentBody$myPassword"] = PASS
> b["ctl00$tbUsername"] = USER
> b["ctl00$tbPassword"] = PASS
I might be able to fix it given time to understand the mechanize process and the html returned, as I don't know how to get to the individual cache pages yet.
I never used the gcget before or geocaching much so it will be a learning experience.
One day it might be nice to invoke the script directly from within Viking for the given view.....
Re; One day it might be nice to invoke the script directly from within Viking...
Actually it already can be (see file datasource_gc.c) with the following provisos:
. You build from source and use the --enable-geocaches option.
By default this is not turned on (although the Debian distribution does)
. You edit the preferences to put in your geocaching.com details**
. You put the gcget script in your path.
(Debian doesn't package it though!)
. You have python installed - (less likely on a Windows machine)
Thus I feel more motivated to try to fix it :)
If I fix it, I will make it better to be packaged as part of Viking:
. rename it to viking-gcget
. make a minimal man page for it
**Note the password is passed to a command line script, and so will be visible to any other users of the machine at the time of running the command. Similarly to the OSM details, they are stored on disk unencrypted - just user read only.
I gave up trying to fix the gcget script and instead used someone else's efforts from:
For the moment I have put it in github for people to try:
I think this will be put in for the 1.2 release and may even be back-ported it into the 1.0 series.
A bit late for 1.2 release but now in the mainline.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.