mirsch / lab2gpx

GNU General Public License v3.0
26 stars 22 forks source link

Bookmarklet for getting Lab UUIDs #86

Closed rragan closed 6 months ago

rragan commented 2 years ago

I made a bookmarklet for extracting lab UUIDs from the Found Labs page. No need to do a View source. The output is in a new tab already selected and ready to copy/paste into the UUID text area.

The source code to allow easy install of the bookmarklet is here: https://github.com/rragan/rragan.github.io/blob/main/FoundLabsIdBookmarklet.html

To try it Run my new tool and drag the link to your bookmark bar. https://rragan.github.io/FoundLabsIdBookmarklet.html

Then Go to https://labs.geocaching.com/logs and let it load fully. Click the bookmarklet created and a new tab should open with all the Id's of your Found Labs highlighted and ready to copy to the clipboard. Paste this into the UUID section of the labs2gpx page and they will be excluded.

It's only been tested on my own finds and it worked ok. Long term, maybe your site should host the installer as the HTML of the page may change and you already would have to deal with that in your View Source parsing code. Feel free to do so. It's not a lot of code

Khoda1 commented 2 years ago

Not sure what to do to make this work. I now realize that the first link is the source code contained in the second link.

mirsch commented 2 years ago

thanks for your contribution. Great idea to parse the HTML in Javascript to circumvent problems like #85 But the code will also include UUIDs of incomplete Labs. This could lead to unexpected results for the users

palzkillm commented 2 years ago

Haven't tried it out yet, but from the technical approach, this should also solve the issue of found, stages appearing as undfound again after beeing renamed, documented here: https://github.com/mirsch/lab2gpx/issues/83

palzkillm commented 2 years ago

I ran into HTTP 500 Internal Server Error with my UUID list yesterday. After some playing around, I found that lab2gpx can handle exactly 133 UUIDs, and will throw an error with no 134.

Disclaimer: For ease of use, I re-formatted the bookmarklets output to a list with a new line for each UUID and without the comma.

PlasmaWave commented 2 years ago

The source code to allow easy install of the bookmarklet is here: https://github.com/rragan/rragan.github.io/blob/main/FoundLabsIdBookmarklet.html

@rragan I am not familiar with creating bookmarklets - I did create 'a' bookmarklet but it clearly is not referencing/running your code, only pulling webpage URLs I entered. I played around but can't figure how to install your code.

Would you mind explaining how and where to install the code? Many thnaks.

jmarlman commented 1 year ago

I HAVE THE SAME ISSUE OF COMPLETE LAB CACHES THAT ARE IN MY FOUND EXCLUDE SOURCE ARE SHOWING UP IN THE OUTPUT. THIS PROBLEM IS GETTING WORST. WHEN AND IF EVER WILL THIS PROBLEM BE RESOLVED.

keenonkites commented 1 year ago

Shouting won't help. You do not have a paid support contract, or do you ?

If you are unhappy then either solve it on your own if you are willing and capable or accept the situation as it is.

Cheers

mirsch commented 6 months ago

new version using api v4 is online. no need for copy & paste anymore.