Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Scraper Configuration #5

Open
12 tasks
AlpacaFur opened this issue Oct 1, 2023 · 0 comments
Open
12 tasks

Implement Scraper Configuration #5

AlpacaFur opened this issue Oct 1, 2023 · 0 comments
Labels

Comments

@AlpacaFur
Copy link
Member

Summary

We'd like to lay down some infrastructure to allow us to configure the scraper in once place without modifying code. This will be less fragile and will prevent accidental commits when changing these properties.

Tasks

  • There will be two files in the repo root:
    • scraper.defaults.json
      • This file provides the default values for any config setting.
      • Each property in the file should have a ${PROPERTYNAME}.description property before it explaining it (what it does and some examples.) These will be ignored when parsing either config file.
    • scraper.config.json
      • This file provides the local-only overrides for the scraper config
      • When a property is not defined in this file, it should fallback to the defaults file.
      • This file should be ignored in .gitignore so it doesn't get commited by accident.
  • Initial config properties to support:
    • outputDirectory - where to output scraper files
    • useCache - whether to use cached HTML files when running the scraper
    • [optional] any others you feel are worth breaking out into this file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant