ndom91 / briefkasten-scrape

Briefkasten Screenshot Job

Home Page:https://docs.briefkastenhq.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“Έ Briefkasten Image Job

GitHub Workflow Status Demo

Job to periodically fetch missing bookmark screenshot cover photos. This Github Action uses Playwright to periodically fetch missing screenshots of saved Bookmarks.

See also:

πŸš€ Getting Started

To run this yourself, you'll need a Github account and a few environment variables. These include a DATABASE_URL to your Briefkasten database. As well as the connection details to your image hosting service, in this case ImageKit.

  1. Clone the repository
$ git clone ssh://github.com/ndom91/briefkasten-scrape
$ cd briefkasten-scrape
  1. Install dependencies
$ npm install
  1. Build Docker container
$ docker build . -t briefkasten-scrape:latest
  1. Run container
$ docker run --rm -d --name briefkasten-scrape \
  -e SUPABASE_KEY="${{ secrets.SUPABASE_KEY }}" \
  -e SUPABASE_URL="${{ secrets.SUPABASE_URL }}" \
  -e DATABASE_URL="${{ secrets.DATABASE_URL }}" \
  -e BOOKMARKS_CHUNK="${{ secrets.BOOKMARKS_CHUNK }}" \
  briefkasten-scrape:latest

This will execute and fetch the first 5 Bookmarks with missing cover images and attempt to capture them with Playwright. They will be uploaded to your image store of choice and then displayed for the user the next time they open their Briefkasten.

πŸ— Contributing

Open to all contributions, please stick to formatting settings in your PR though!

πŸ“ License

MIT

About

Briefkasten Screenshot Job

https://docs.briefkastenhq.com

License:MIT License


Languages

Language:JavaScript 97.2%Language:Dockerfile 2.8%