Code Monkey home page Code Monkey logo

Comments (11)

thomasruns avatar thomasruns commented on August 15, 2024 1

They definitely changed some things over the last year, but I have been able to automate it again. My code on camperalerts.com has been scanning for several days now without any errors. I don't mind sharing what I changed to get it working, but I don't want to post it publicly here where someone could use that information to break my code :) Shoot me a message at gmail (same username) and we can chat.

from gocamp.

peckjon avatar peckjon commented on August 15, 2024

Hi @N4TRB0Y !

This project has been latent for the last year, but I finally stepped back into it just this week to discover, much to my horror, that goingtocamp has changed enough to make this project incompatible. Unfortunately, since this is all unofficially reverse-engineered from their web API, it'll take some time for me to go though the browser calls and revise (assuming it is even possible).

No immediate timeline, I'm afraid... but since they've "updated" the website to make it even LESS usable than last year (I didn't think it was possible!), there's certainly impetus for me to scope this out.

I'll let you know here if I'm able to find time to make any progress. Meanwhile, I absolutely welcome contributions if you or a colleague have time to send a PR along!

from gocamp.

thomasruns avatar thomasruns commented on August 15, 2024

I also discovered that this wasn't up to date a year or so ago when I found it, so I wrote my own that worked great.. until sometime between last Friday, 5/7 (the last time I know for sure it worked) and today. At first I thought they had just blocked my IP address, but after further testing it looks like they locked it down to only accept requests from their own domain. I just figured I would pass that along to possibly save you some time in case it's just not possible to "fix" this after their changes.

from gocamp.

peckjon avatar peckjon commented on August 15, 2024

from gocamp.

thomasruns avatar thomasruns commented on August 15, 2024

Unfortunately no, it's part of a project with some private family stuff in it. But basically I store the campgrounds, dates, etc in a database, then the code loops through each one and checks the appropriate reservation system.

I made a gist with the chunk of code that was making the request for goingtocamp campgrounds and parsing the response. It's some quick and dirty PHP I made last summer with plans to clean up over the winter which I never got around to. Anyway, this is what was working as of Friday: https://gist.github.com/thomasruns/aa79f32b7898f9f8055cd2be853d9fbc

from gocamp.

thomasruns avatar thomasruns commented on August 15, 2024

I have no idea how long it will last, but their web api is open again so my tracker is working instead of returning 403 responses.

from gocamp.

stanraye3 avatar stanraye3 commented on August 15, 2024

It looks like mapLinkLocalizedValues has been removed from MAPDATA results in list_camp_areas() :(
for map_id, info in results['mapLinkLocalizedValues'].items():
KeyError: 'mapLinkLocalizedValues'

from gocamp.

peckjon avatar peckjon commented on August 15, 2024

Sadly, yes. I haven’t been able to find a replacement source for that data.

from gocamp.

Justin31415 avatar Justin31415 commented on August 15, 2024

Is it others' observations that in addition to this being outdated, that the service has been changed to prevent automated access. I'm running into captcha when just trying to load the page via Selenium/Puppeteer

from gocamp.

peckjon avatar peckjon commented on August 15, 2024

That's awesome, @thomasruns! Will do.

If you think the API portions could be broken out as a separate module from the rest of your site, I'd love to see that portion go public... unless you're specifically worried about the goingtocamp folks re-obfuscating the API based on what they see you using? In which case... actually, posting publicly might still be the best course. There's more of us OSS devs than there are of them :-o

from gocamp.

acaloiaro avatar acaloiaro commented on August 15, 2024

FYI @thomasruns @N4TRB0Y @Justin31415 Thanks to @peckjon providing a nice reference point with gocamp, I've begun to recreate its functionality in camply.

Feel free to track the issue with my draft PR attached: juftin/camply#94 and snag any of the code. It's in very rough shape at the moment. More of a proof of concept, but you can snag some of my code and port it back to gocamp if you like.

from gocamp.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.