simonw / simonw/shot-scraper

Idea: plugins, packaging JavaScript to be injected into pages

Open
#67 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

research
Dominant language
Python
Stars
2.6k
Forks
128
Avg merge
9d 15h
Merged PRs (30d)
2

Description

Tweet: https://twitter.com/simonw/status/1514657436287705119

I want to be able to use tricks like this one - where Readability.js is injected into a page - without relying on CDNs: https://til.simonwillison.net/shot-scraper/readability

One option would be to package things like this up as plugins using Pluggy (as seen in Datasette) - then serve the JavaScript assets using a /-/shot-scraper-xyz/plugins/... route configured using https://playwright.dev/python/docs/api/class-page#page-route

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files or tests. Start by reviewing the existing Playwright page setup and the page.route API, then determine how plugin JavaScript assets would be packaged and served without a CDN. Done would require an agreed plugin mechanism and a route that serves the injected assets.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.