Skip to content

[FEATURE] Clear url ambiguity between config.yaml and jobs.yaml #173

@drws

Description

@drws

Is your feature request related to a problem? Please describe.

Compare these two cases of setting User Agent string:

  1. Setting default UA in config.yaml:
job_defaults:
  url:
    headers:
      User-Agent: 'Mozilla/5.0'
  1. Setting job-specific UA in jobs.yaml:
url: https://lynx.invisible-island.net
headers:
  User-Agent: 'Lynx'

The difference in url structure between config.yaml and jobs.yaml introduces unnecessary ambiguity.

Describe the solution you'd like.

For example:

config.yaml:

job_defaults:
  http:
    headers:
      User-Agent: 'Mozilla/5.0'

jobs.yaml:

url: https://lynx.invisible-island.net
http:
  headers:
    User-Agent: 'Lynx'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions