mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[PR #337] [MERGED] New feature: change user-agent for curl. #4126
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#4126
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/337
Author: @comsomisha
Created: 4/14/2020
Status: ✅ Merged
Merged: 4/15/2020
Merged by: @pirate
Base:
master← Head:master📝 Commits (3)
18f0f6605042020bb5805305042020021aa2a5b15042020📊 Changes
3 files changed (+11 additions, -3 deletions)
View changed files
📝
archivebox/archive_methods.py(+4 -2)📝
archivebox/config.py(+5 -1)📝
etc/ArchiveBox.conf.default(+2 -0)📄 Description
Summary
Sometimes you need to change the user agent to save desktop pages in web.archive.org.
For example:
A) curl, default user-agent
https://web.archive.org/web/20200203111954/https://www.sports.ru/tribuna/blogs/puncher/2216091.html
Result: redirect to mobile version
B) curl, curl_user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36"
https://web.archive.org/web/20200309090029/https://www.sports.ru/tribuna/blogs/puncher/2216091.html
Result: desktop version
Changes these areas
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.