Skip to content

Select Web Fetch providers and headless engines through a registry #180

Closed

Description

@lanyue-llk

Child of #97 for one item.

web_fetch/providers/base.py::build_provider dispatches with an if-chain, and providers/headless.py defines ENGINES followed by branches on the engine name. Adding a provider or engine means editing several branches. Check the current code first, because this comes from the #97 audit.

Scope

  • Select providers through one registry, so a new provider adds an entry rather than a branch.
  • Replace engine-name branches with per-engine data in the registered engine definition.
  • Keep behaviour and every command line each engine produces, and pin them with tests.
  • Leave a file alone if a frozen hash binding prevents the edit, and say so in the PR.

Part of #97

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions