nnngrach / strava_auto_auth Goto Github PK
View Code? Open in Web Editor NEWNode.JS: Script for scraping Strava authorization cookies
Node.JS: Script for scraping Strava authorization cookies
As of last week I can see only the low resolution version of the Strava heatmap.
Is it possible to get a version with basemap and labels like this? https://www.strava.com/heatmap#13.06/2.32788/48.84984/gray/ride
Thanks!
Hi Max,
It seems like you wrote this script for Heroku. However, I've tried deploying this script on Heroku but get the following error:
2020-11-19T01:40:36.769848+00:00 heroku[web.1]: Starting process with command
node Controller/Main.js2020-11-19T01:40:39.732844+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T01:40:39.732864+00:00 app[web.1]: throw err; 2020-11-19T01:40:39.732865+00:00 app[web.1]: ^ 2020-11-19T01:40:39.732865+00:00 app[web.1]: 2020-11-19T01:40:39.732865+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T01:40:39.732866+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)2020-11-19T01:40:39.732866+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T01:40:39.732867+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T01:40:39.732867+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T01:40:39.732867+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T01:40:39.732868+00:00 app[web.1]: requireStack: [] 2020-11-19T01:40:39.732868+00:00 app[web.1]: } 2020-11-19T01:40:39.803774+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T01:40:39.849972+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T01:40:39.853422+00:00 heroku[web.1]: State changed from crashed to starting 2020-11-19T01:40:43.000000+00:00 app[api]: Build succeeded 2020-11-19T01:40:47.440435+00:00 heroku[web.1]: Starting process with command
node Controller/Main.js2020-11-19T01:40:49.767487+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T01:40:49.767504+00:00 app[web.1]: throw err; 2020-11-19T01:40:49.767504+00:00 app[web.1]: ^ 2020-11-19T01:40:49.767504+00:00 app[web.1]: 2020-11-19T01:40:49.767505+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T01:40:49.767506+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)2020-11-19T01:40:49.767507+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T01:40:49.767508+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T01:40:49.767508+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T01:40:49.767508+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T01:40:49.767509+00:00 app[web.1]: requireStack: [] 2020-11-19T01:40:49.767509+00:00 app[web.1]: } 2020-11-19T01:40:49.814752+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T01:40:49.850531+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T01:40:51.153906+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=strava-auto-auth.herokuapp.com request_id=d39c5a3d-98df-46f5-99ed-adda8653abac fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:40:51.864012+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=strava-auto-auth.herokuapp.com request_id=3a214c71-9b46-4009-8c55-eddfb58fc209 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:41:11.280685+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/Tracks_Strava_All/681/1562/12" host=strava-auto-auth.herokuapp.com request_id=9583d645-f48f-4aca-86fe-6c077280b074 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:41:11.870191+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=strava-auto-auth.herokuapp.com request_id=703f47fb-c121-4418-a5b8-98d193dcea28 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T02:02:38.128802+00:00 heroku[web.1]: State changed from crashed to starting 2020-11-19T02:02:48.168738+00:00 heroku[web.1]: Starting process with command
node Controller/Main.js 2020-11-19T02:02:50.720176+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T02:02:50.797578+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T02:02:50.649582+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T02:02:50.649594+00:00 app[web.1]: throw err; 2020-11-19T02:02:50.649595+00:00 app[web.1]: ^ 2020-11-19T02:02:50.649595+00:00 app[web.1]: 2020-11-19T02:02:50.649595+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T02:02:50.649596+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15) 2020-11-19T02:02:50.649596+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T02:02:50.649597+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T02:02:50.649597+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T02:02:50.649598+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T02:02:50.649598+00:00 app[web.1]: requireStack: [] 2020-11-19T02:02:50.649599+00:00 app[web.1]: }
And help is appreciated.
I don't know if it's me or your code, but the method isAuthParamsOutdated always returns true and so I'm reconnecting to strava all the time. And strava starts to block me.
Do you have a solution ?
Seems like heatmaps stopped working a couple of days ago. Only low-res showing.
I mean these tiles: https://anygis.ru/api/v1/Tracks_Strava_All_HD/{x}/{y}/{z}
As of Jan. 28, 2020, I'm no longer able to display any of the heatmap styles in Leaflet. It appears to be an issue with the anygis server? Please advise.
Thanks for this amazing utility!
Can you please add CORS support to the server?
Mapbox https tiles from a remote server requires CORS to be enabled in Chrome.
I could send a pull request but I couldn't find where... :-/
I'm also not sure if this is the right repository or I should open an issue here:
https://github.com/nnngrach/AnyGIS_server
Feel free to move this issue to the right place...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.