1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-10-02 13:27:07 +02:00

Update default user agent

This commit is contained in:
Alexander Graf 2023-12-18 08:01:06 +01:00
parent 7cc13ee08e
commit f0420e8a20
2 changed files with 3 additions and 3 deletions

View File

@ -300,7 +300,7 @@ How to Download
.. option:: --user-agent USER_AGENT
User Agent to use for HTTP requests. Per default, Instaloader pretends being
Chrome/119 on Linux.
Chrome/120 on Linux.
.. option:: --max-connection-attempts N

View File

@ -33,8 +33,8 @@ def copy_session(session: requests.Session, request_timeout: Optional[float] = N
def default_user_agent() -> str:
return 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 ' \
'(KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
return ('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 '
'(KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36')
def default_iphone_headers() -> Dict[str, Any]: