myarcane / my-climbing-stats

Small app scraping my climbing stats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

my-climbing-stats

Small puppeteer helper to scrape my own climbing data (ascents etc) from 8a.nu on a daily basis.

Initial need

I wanted to be able to save my climbing data in case 8a.nu service would not be accessible anymore.

Technical stack

  • 8a.nu doesn't provide any open rest api so I used puppeteer to be able to scrape my own climbing data.

  • I used netlify's serverless functions to schedule the scraping.

  • The package @sparticuz/chromium helped me to deploy a chromium version compatible with netlify aws lambda and puppeteer core. As a side note, I was not successful in production using chrome-aws-lambda.

  • The package @octokit/rest helps me to automatically commit my climbing data on this repository.

Next steps

  • Build a little page to show my climbing data
  • Migrate code from JS to TS

About

Small app scraping my climbing stats


Languages

Language:JavaScript 100.0%