Skip to content

Commit 3170b3c

Browse files
authored
Merge pull request #169 from kastaid/dev
update
2 parents 0a2fa7e + 99bff8d commit 3170b3c

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

getter/core/constants.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,9 @@
6262
)
6363

6464
USERAGENTS = (
65-
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0",
66-
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
67-
"Chrome/72.0.3626.121 Safari/537.36",
68-
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100 101 Firefox/22.0",
69-
"Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0",
70-
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) "
71-
"Chrome/19.0.1084.46 Safari/536.5",
72-
"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5",
73-
"Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0",
65+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.7339.127 Safari/537.36", # windows
66+
"Mozilla/5.0 (Macintosh; Intel Mac OS X 13_7_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.7339.132 Safari/537.36", # macos
67+
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.7339.127 Safari/537.36", # linux
7468
)
7569

7670
CARBON_PRESETS = {

getter/plugins/screenshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def _(kst):
5858
options.add_argument("--no-sandbox")
5959
options.add_argument("--disable-dev-shm-usage")
6060
options.add_argument(
61-
"user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
61+
"user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.7339.127 Safari/537.36"
6262
)
6363
prefs = {"download.default_directory": "./"}
6464
options.add_experimental_option("prefs", prefs)

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruff==0.12.12
1+
ruff==0.13.0

0 commit comments

Comments
 (0)