Comments (11)
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.
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.
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.
from gocamp.
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.
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.
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.
Sadly, yes. I haven’t been able to find a replacement source for that data.
from gocamp.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocamp.