X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/48cd009e84b58436396716626a9bd0649bd3a5f7..5210c3d359db741dbaf7b213874008ee8bf3568e:/tools/gcget?ds=sidebyside diff --git a/tools/gcget b/tools/gcget index c6c850ba..90513ba4 100755 --- a/tools/gcget +++ b/tools/gcget @@ -69,10 +69,11 @@ if len(args) < 2: sys.exit() ######################### - -ll = args[0].split(",") -lat = ll[0] -lon = ll[1] +#ll = args[0].split(",") +#lat = ll[0] +#lon = ll[1] +#The following line replaced the previous 3 lines. +lat, lon = args[0].split(",") if len(args) >= 3: maxdist = args[2] @@ -104,8 +105,9 @@ b=Browser() b.open("http://geocaching.com/seek/") b.follow_link(text="Log in") b.select_form(nr=0) -b["myUsername"] = USER -b["myPassword"] = PASS +# The Username and Password fields on the Login form changed +b["ctl00$ContentBody$myUsername"] = USER +b["ctl00$ContentBody$myPassword"] = PASS b.submit() magicnumber = 0 # the ctl number of Next. get only once