Using browser for Nubiles photo page.
This commit is contained in:
8
package-lock.json
generated
8
package-lock.json
generated
@@ -95,7 +95,7 @@
|
||||
"tunnel": "0.0.6",
|
||||
"ua-parser-js": "^1.0.37",
|
||||
"undici": "^7.24.7",
|
||||
"unprint": "^0.19.18",
|
||||
"unprint": "^0.19.20",
|
||||
"url-pattern": "^1.0.3",
|
||||
"v-tooltip": "^2.1.3",
|
||||
"video.js": "^8.6.1",
|
||||
@@ -20844,9 +20844,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/unprint": {
|
||||
"version": "0.19.18",
|
||||
"resolved": "https://registry.npmjs.org/unprint/-/unprint-0.19.18.tgz",
|
||||
"integrity": "sha512-8opK8pRRJ5GY+gBBeIieD5Hr1D3ldWsiyvG4I+60Rjhx2EHkyhYL/okl6fOpiwvC4aoB+G69wzDipwSGWX5t1w==",
|
||||
"version": "0.19.20",
|
||||
"resolved": "https://registry.npmjs.org/unprint/-/unprint-0.19.20.tgz",
|
||||
"integrity": "sha512-Z1SVqsbs+CRS5VIRKKVmCYoki8q8gghY65lY+epxK4vMdT9rlouC9YGpHk0J9FusH0GQPIdG9MiWHIvAMGE3SA==",
|
||||
"dependencies": {
|
||||
"bottleneck": "^2.19.5",
|
||||
"cookie": "^1.1.1",
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
"tunnel": "0.0.6",
|
||||
"ua-parser-js": "^1.0.37",
|
||||
"undici": "^7.24.7",
|
||||
"unprint": "^0.19.18",
|
||||
"unprint": "^0.19.20",
|
||||
"url-pattern": "^1.0.3",
|
||||
"v-tooltip": "^2.1.3",
|
||||
"video.js": "^8.6.1",
|
||||
|
||||
@@ -21,9 +21,9 @@ function stripQuery(link) {
|
||||
}
|
||||
|
||||
async function getPhotos(albumUrl) {
|
||||
const res = await unprint.get(albumUrl, {
|
||||
// aggressive Turnstile protection calls for browser
|
||||
const res = await unprint.browser(albumUrl, {
|
||||
selectAll: '.photo-thumb',
|
||||
interface: 'request',
|
||||
});
|
||||
|
||||
return res.ok
|
||||
|
||||
Reference in New Issue
Block a user