mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[PR #1360] [MERGED] Add _EXTRA_ARGS for various extractors #4399
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#4399
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1360
Author: @benmuth
Created: 2/23/2024
Status: ✅ Merged
Merged: 3/14/2024
Merged by: @pirate
Base:
dev← Head:extra-args📝 Commits (6)
4e69d2cAddEXTRA_*_ARGSfor wget, curl, and singlefileab8f395AddYOUTUBEDL_EXTRA_ARGS4d9c5a7AddCHROME_EXTRA_ARGSd74ddd4Flip dedupe precedence orderd8cf09cRemove unnecessary variable length args for dedupef4deb97AddARGSandEXTRA_ARGSfor Mercury extractor📊 Changes
10 files changed (+115 additions, -42 deletions)
View changed files
📝
archivebox/config.py(+16 -1)📝
archivebox/extractors/archive_org.py(+9 -2)📝
archivebox/extractors/favicon.py(+13 -3)📝
archivebox/extractors/headers.py(+9 -3)📝
archivebox/extractors/media.py(+9 -2)📝
archivebox/extractors/mercury.py(+10 -4)📝
archivebox/extractors/singlefile.py(+6 -19)📝
archivebox/extractors/title.py(+9 -2)📝
archivebox/extractors/wget.py(+10 -3)📝
archivebox/util.py(+24 -3)📄 Description
Summary
This PR adds a way to configure
wget,curl,singlefile,youtube-dl, andchromewithout overriding the default options.The main default options, extra options, and more specific options (like
WGET_USER_AGENT) are all deduplicated. It's assumed that options set with more specificity should take precedence, so something like the--user-agentargument forwgetwill come fromWGET_USER_AGENTinstead of_ARGSor_EXTRA_ARGS, and options set in_EXTRA_ARGStake precedence over_ARGS.This PR might need some more testing with more complex configurations. Hopefully it's simple enough that won't break anything while still being useful, but I'm not a wizard with
curlorwgetso there might be some possibilities I don't know about.Related issues
#1025
Changes these areas
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.