steve8x8 / geotoad

Geocaching query tool written in Ruby
https://buymeacoffee.com/steve8x8
Other
28 stars 8 forks source link

GUID not working since last gc.com update on 8-May-2012 #241

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using the small script from the Wiki to automatically retrieve a bookmark 
list. Since the gc.com update on 8-May-2012, this script is no longer able to 
get the cache information.

It seems like the GUID query option has been broken by the site update:

$ geotoad -q guid -x gpx -o tst.gpx "f1b98ae4-94a1-4571-9575-1c093d22c94b"
GeoToad 3.15.5 (i486-linux-1.8.7)
- Report bugs or suggestions at http://code.google.com/p/geotoad/issues/
- Please include verbose output (-v) without passwords in the bug report.
( o ) Loading configuration from /home/olf/.geotoad/config.yaml
( - ) Your cache directory is /home/olf/.geotoad/cache
( o ) Logging in as magicolf
( o ) Login successful
( o ) Querying user preferences
( o ) Using date format dd MMM yy

( o ) Performing guid search for f1b98ae4-94a1-4571-9575-1c093d22c94b
( - ) 
http://www.geocaching.com/seek/cache_details.aspx?guid=f1b98ae4-94a1-4571-9575-1
c093d22c94b
 ***  Could not identify; member-only cache?
 ***  No caches found in search, exiting early.

This is the geotoad version I'm using (but I've also tried the latest SVN 
version, same effect):

$ geotoad -v
GeoToad 3.15.5 (i486-linux-1.8.7)

Original issue reported on code.google.com by magic...@gmail.com on 15 May 2012 at 7:21

GoogleCodeExporter commented 9 years ago
Addition: the cache in the above example is not a premium cache.

When I'm trying the above query with the latest SVN version, I'm getting a 
slightly different error message:

$ ./geotoad.rb -q guid -x gpx -o tst.gpx "f1b98ae4-94a1-4571-9575-1c093d22c94b"
[...]
( - ) 
http://www.geocaching.com/seek/cache_details.aspx?guid=f1b98ae4-94a1-4571-9575-1
c093d22c94b
 ***  Could not find WID for GUID f1b98ae4-94a1-4571-9575-1c093d22c94b
 ***  No caches found in search, exiting early.

I've attached the verbose log.

Original comment by magic...@gmail.com on 15 May 2012 at 7:27

Attachments:

GoogleCodeExporter commented 9 years ago
Strange: I cannot reproduce this.
SVN commit 1132 should have addressed this both for trunk and branch.

Log reads
</html>
D: Unknown Cache by Oliver-HB in Germany/Bremen
D: Found D: 1.5
D: Found T: 2.5
D: Found size: small
D: Found WID: GC2A5R2 (Google)
D: Found GUID: f1b98ae4-94a1-4571-9575-1c093d22c94b
D: pre-filter: GC2A5R2
( o ) 1 geocaches found in defined area.

Same for trunk (r1143) and (extended) branch, ruby 1.9 and 1.8.

Can you pick up the cache_details file from the cache directory, and run
  grep GC2A5R2 cache_details.aspx_guid_f1b98ae4-94a1-4571-9575-1c093d22c94b
? Something must be different... and I want to make absolutely sure I get hold 
of at least one occurrence of the GC..... string.

Can you apply the small patch (inside the lib/ directory, patch -p0) and see 
what happens?

Original comment by Steve8x8 on 15 May 2012 at 11:32

Attachments:

GoogleCodeExporter commented 9 years ago
The small patch seems to fix it. 

I've attached the verbose output from the patched version, as well as the 
cache_details thingy from the cache directory.

Original comment by magic...@gmail.com on 15 May 2012 at 11:45

Attachments:

GoogleCodeExporter commented 9 years ago
I just ran the patched version again the full bookmark list (~15 caches) and 
didn't see any error message.

Original comment by magic...@gmail.com on 15 May 2012 at 11:49

GoogleCodeExporter commented 9 years ago
Thanks for letting me have a look - for some reason you have no map (and no map 
links) on your cache description page. Is there a setting I have missed?
My own copy has several links to Google, Yahoo, MapQuest, Bing etc. maps - 
which do contain the GC code, at least some of them. Yours don't. Don't ask me 
what's the reason.

I also saw that there is a field containing your cache note (don't worry, I 
won't steal it, but please remove the file) - which makes me curious whether in 
the print view (cdpf.aspx) there's a similar one...
I'll merge the patch into trunk and branch before release time. Thanks for 
finding this one!

Original comment by Steve8x8 on 15 May 2012 at 2:01

GoogleCodeExporter commented 9 years ago
Ok, I've deleted the file.

As for the links to Google, Yahoo, etc.: if I open the link 
http://www.geocaching.com/seek/cache_details.aspx?guid=f1b98ae4-94a1-4571-9575-1
c093d22c94b in a browser, I actually do see them as well as the maps. Strange 
indeed.

Original comment by magic...@gmail.com on 15 May 2012 at 2:08

GoogleCodeExporter commented 9 years ago
Very strange.
May I ask you for a favour? Could you browse your .geotoad/cache for older 
cache_details files, and check for the corresponding GC strings? E.g. the 
Google Maps one reads "+(GC12345)+", therefore grepping for '\+(GC' (from the 
top of my head) should show (or not show) whether they have been there in the 
past ... 

There seems to be a difference between Basic and Premium Members (another 
one... seems they write their codes separately for both client types) and it 
might be fun to find out when they introduced it.

I have added another pattern involving the "send to phone" button (so we now 
have a belt, suspenders and 4-inch nails to keep our pants up :)) - and 
committed to SVN.

BTW: Nice to know that at least someone reads the Wiki pages ;)

Original comment by Steve8x8 on 16 May 2012 at 8:01

GoogleCodeExporter commented 9 years ago
Sorry, step 1 of my script to retrieve the bookmarks is to delete all 
cache_details* in order to always have the latest versions.

But in case you need any additional info on Premium pages, you can always 
contact me, I'll be happy to help!

Original comment by magic...@gmail.com on 16 May 2012 at 8:24

GoogleCodeExporter commented 9 years ago
Since the May 22 site update changed the interface to Google Maps for Premium 
Members, may I ask you to check whether anything broke?

Original comment by Steve8x8 on 23 May 2012 at 11:34

GoogleCodeExporter commented 9 years ago
They rolled back the change as the Google Maps stuff was too buggy, apparently: 
http://forums.groundspeak.com/GC/index.php?showtopic=296071&view=findpost&p=5044
465

Once it's back only, what do you want me to test? Just normal queries and the 
bookmark query from above?

Original comment by magic...@gmail.com on 23 May 2012 at 11:56

GoogleCodeExporter commented 9 years ago
Lets be optimistic and hope that the recent additions to the parser fix the 
issue.
Merging into issue 228.

Original comment by Steve8x8 on 25 May 2012 at 12:32