GithubHelp home page GithubHelp logo

nnngrach / strava_auto_auth Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 6.0 102 KB

Node.JS: Script for scraping Strava authorization cookies

JavaScript 50.27% Dockerfile 6.79% Shell 2.35% CSS 2.67% HTML 37.92%
headless-chrome nodejs puppeteer strava

strava_auto_auth's People

Contributors

nnngrach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

strava_auto_auth's Issues

Low rez only?

As of last week I can see only the low resolution version of the Strava heatmap.

Deploying with Heroku

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 commandnode 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 commandnode 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.

isAuthParamsOutdated always true

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 ?

Styles no longer working

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.

Support CORS

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...

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.