Skip to content

Instantly share code, notes, and snippets.

@hyoretsu
Created January 21, 2024 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyoretsu/a814c99590af00ea2b248cce8d9eea10 to your computer and use it in GitHub Desktop.
Save hyoretsu/a814c99590af00ea2b248cce8d9eea10 to your computer and use it in GitHub Desktop.
[Sun Jan 21 2024 04:01:25 GMT+0000] starting 1337x scrape...
Scrapping 1337x Movies category page 1
Failed 1337x scrapping for [1] Movies due: Error: Failed browse request
at browse (/home/node/app/scrapers/1337x/1337x_api.js:66:27)
at /home/node/app/scrapers/1337x/1337x_api.js:79:23
Scrapping 1337x TV category page 1
Failed 1337x scrapping for [1] TV due: Error: Failed browse request
at browse (/home/node/app/scrapers/1337x/1337x_api.js:66:27)
at /home/node/app/scrapers/1337x/1337x_api.js:79:23
Scrapping 1337x Anime category page 1
Failed 1337x scrapping for [1] Anime due: Error: Failed browse request
at browse (/home/node/app/scrapers/1337x/1337x_api.js:66:27)
at /home/node/app/scrapers/1337x/1337x_api.js:79:23
Scrapping 1337x Documentaries category page 1
Failed 1337x scrapping for [1] Documentaries due: Error: Failed browse request
at browse (/home/node/app/scrapers/1337x/1337x_api.js:66:27)
at /home/node/app/scrapers/1337x/1337x_api.js:79:23
[Sun Jan 21 2024 04:01:26 GMT+0000] finished 1337x scrape
Failed EZTV scrapping for [1] due: [
AxiosError: Request failed with status code 403
at settle (/home/node/app/node_modules/axios/dist/node/axios.cjs:1967:12)
at BrotliDecompress.handleStreamEnd (/home/node/app/node_modules/axios/dist/node/axios.cjs:3062:11)
at BrotliDecompress.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1358:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'ERR_BAD_REQUEST',
config: {
transitional: [Object],
adapter: [Array],
transformRequest: [Array],
transformResponse: [Array],
timeout: 120000,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [Object [AxiosHeaders]],
method: 'get',
url: 'https://eztv.re/api/get-torrents?limit=100&page=1',
data: undefined
},
request: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
socket: [TLSSocket],
_header: 'GET /api/get-torrents?limit=100&page=1 HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: eztvx.to\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/api/get-torrents?limit=100&page=1',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'eztvx.to',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kEndCalled)]: true,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 403,
statusText: 'Forbidden',
headers: [Object [AxiosHeaders]],
config: [Object],
request: [ClientRequest],
data: `<!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="/cdn-cgi/styles/challenges.css" rel="stylesheet"><meta http-equiv="refresh" content="375"></head><body class="no-js"><div class="main-wrapper" role="main"><div class="main-content"><noscript><div id="challenge-error-title"><div class="h2"><span class="icon-wrapper"><div class="heading-icon warning-icon"></div></span><span id="challenge-error-text">Enable JavaScript and cookies to continue</span></div></div></noscript></div></div><script>(function(){window._cf_chl_opt={cvId: '3',cZone: "eztvx.to",cType: 'managed',cNounce: '76150',cRay: '848c9ed23f471259',cHash: 'e8d5793f2d17634',cUPMDTk: "\\/api\\/get-torrents?limit=100&page=1&__cf_chl_tk=ymjdWda4Ufsc.Gdz.jRp.U2INp2WgR6QGjAdKsyTyDs-1705809313-0-gaNycGzNDXs",cFPWv: 'b',cTTimeMs: '1000',cMTimeMs: '375000',cTplV: 5,cTplB: 'cf',cK: "visitor-time",fa: "\\/api\\/get-torrents?limit=100&page=1&__cf_chl_f_tk=ymjdWda4Ufsc.Gdz.jRp.U2INp2WgR6QGjAdKsyTyDs-1705809313-0-gaNycGzNDXs",md: "xJfXvKG4TCftaW1MvO.lPcSvcaehxweigaUMKElWpd0-1705809313-1-AeE1kOmQ-EgQ-gjZ07t98tHVpZsf9a2ZenQ22OI4jyOiOk8pZDU119oX-VU10rBhk97ZPXM8rxBF0JQE-Izv0H4wTcIO-xNqlRZo3Dr3IWoszys7V6rVrl4pGiWCxA8bIbbDsAaI7hOWk8-NkUUHVQKW-OP1Yf1HrQdUAabwlhbI3DjwpYj9UwAhdN5CXnPwFNao1dojYIoRIJzVDBrcYkPGxD_ogCmEVRZqmI7QCGSc3oSYQLq1J9wnA-y8NzerY5LSUzKhBOQIfbIvVbTW9_G4TxAb2R8nPJmE6Aw_NZur_nKYGh8WJyv1rwZ7mntrUyXaRV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lV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi8xNi42IE1vYmlsZS8xNUUxNDggU2FmYXJpLzYwNC4x',rm: 'R0VU',d: 'SBcqHncxZFF6Q3FcgcB196yANbFGEnupFEQxig8Zdjbdo8CJtNqo6bp4rlXQ7AhAnWLAM8lLdnUB3ijqEGO8Qx91ACHN66gKFecCoUE8ODgCxStUxLnTzEhsE0TjVCOXV391uAebhs6gj9tmHdX/43qakoC0qxb7EiLVQkrJ+qiP54Rh/HCuuL84pSwi22B+c2qm8ePts/MsT+eTExrMZSQea691YglhW4MvRXzh0tCyChxxiNIfsAifccpWYfNJDE1RivghZ+QPnhGCwO4R5eySQM5wbCpzY5gZ/dAW+lo5CDz9rw/tlhOdW91G/4PvP77UQQUvY2iDNtREYV/MQkIyBCP3nAYmY7mrUq4o4+PWcj02ULv13qMpGxPJxHBDKcm7jAqg8KhoTsMrtA1/QqlsUzdDLfp5jh2N032C02aNSvNpK1eEZIIfF+Bdd9X36c7UuLkJFJLxu6HxtzioV1rNV0e2qFavfKKZ5sJwed4us2sZykRUmPQ5iitdbFxCqDBpXinbRTNd4uOK2G96G7cspdc0gcpCK7yJZZ9ZBDI=',t: 'MTcwNTgwOTMxMy42NDEwMDA=',cT: Math.floor(Date.now() / 1000),m: '1B5d2zw9pCQ5BeSV23r/MYxd8IhwQwYgV8jHAnxDnAo=',i1: 'dF89Ca2ZGJcRquWUkkJktw==',i2: '92Yeqstd3oGOwImXQA7mpQ==',zh: 'wQ3sZN1RVKYmnSkhlPatM08J+4mh+p7X1Yd+lApqv+Q=',uh: 'CbXEm5L4BIE3A7VDZ46mFZMzNE4aB2n5CEBLpigzGgg=',hh: 'YAJxTfifVEAUKA4NcSFM4MM0Vb9cLNVamZRM92038MA=',}};var cpo = document.createElement('script');cpo.src = '/cdn-cgi/challenge-platform/h/b/orchestrate/chl_page/v1?ray=848c9ed23f471259';window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null, "\\/api\\/get-torrents?limit=100&page=1&__cf_chl_rt_tk=ymjdWda4Ufsc.Gdz.jRp.U2INp2WgR6QGjAdKsyTyDs-1705809313-0-gaNycGzNDXs" + window._cf_chl_opt.cOgUHash);cpo.onload = function() {history.replaceState(null, null, ogU);}}document.getElementsByTagName('head')[0].appendChild(cpo);}());</script></body></html>`
}
}
]
[Sun Jan 21 2024 04:01:25 GMT+0000] starting NyaaPantsu scrape...
Scrapping NyaaPantsu 3_5 category page 1
Failed NyaaPantsu scrapping for [1] 3_5 due: Error: Request failed with status code 403
at createError (/home/node/app/node_modules/nyaapi/node_modules/axios/lib/core/createError.js:16:15)
at settle (/home/node/app/node_modules/nyaapi/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/home/node/app/node_modules/nyaapi/node_modules/axios/lib/adapters/http.js:293:11)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1358:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [Function: httpAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json, text/plain, */*',
'User-Agent': 'axios/0.23.0'
},
baseURL: 'https://nyaa.net/api',
params: { c: '3_5', page: 1, limit: 100 },
method: 'get',
url: '/search',
data: undefined
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
finish: [Function: requestOnFinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'nyaa.net',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 9,
connecting: false,
_hadError: false,
_parent: null,
_host: 'nyaa.net',
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
write: [Function: writeAfterFIN],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 5774707,
[Symbol(kHandle)]: null,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: false,
[Symbol(kSetKeepAliveInitialDelay)]: 0,
[Symbol(kBytesRead)]: 7628,
[Symbol(kBytesWritten)]: 155,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'GET /api/search?c=3_5&page=1&limit=100 HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'User-Agent: axios/0.23.0\r\n' +
'Host: nyaa.net\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/api/search?c=3_5&page=1&limit=100',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 403,
statusMessage: 'Forbidden',
client: [TLSSocket],
_consuming: true,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://nyaa.net/api/search?c=3_5&page=1&limit=100',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'nyaa.net',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://nyaa.net/api/search?c=3_5&page=1&limit=100',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kEndCalled)]: true,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'user-agent': [Array],
host: [Array]
},
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 403,
statusText: 'Forbidden',
headers: {
date: 'Sun, 21 Jan 2024 04:01:25 GMT',
'content-type': 'text/html; charset=UTF-8',
'transfer-encoding': 'chunked',
connection: 'close',
'cross-origin-embedder-policy': 'require-corp',
'cross-origin-opener-policy': 'same-origin',
'cross-origin-resource-policy': 'same-origin',
'origin-agent-cluster': '?1',
'permissions-policy': 'accelerometer=(),autoplay=(),browsing-topics=(),camera=(),clipboard-read=(),clipboard-write=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()',
'referrer-policy': 'same-origin',
'x-frame-options': 'SAMEORIGIN',
'cf-mitigated': 'challenge',
'cache-control': 'private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0',
expires: 'Thu, 01 Jan 1970 00:00:01 GMT',
'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2BUaUJSsX5EMfvvuDFMYAjpwghPpERuGk%2FEYuvrjIAfH7OeEcIEsuHrAaG2zj5JEuKP7WCmPuiOQOO0QqA711zS40Stymo1s%2B6nzwKtdE898MvY7iwoyfSTZycg%3D%3D"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'cf-ray': '848ca7e84f572a0c-ORD',
'alt-svc': 'h3=":443"; ma=86400'
},
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: [Object],
baseURL: 'https://nyaa.net/api',
params: [Object],
method: 'get',
url: '/search',
data: undefined
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'GET /api/search?c=3_5&page=1&limit=100 HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'User-Agent: axios/0.23.0\r\n' +
'Host: nyaa.net\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/api/search?c=3_5&page=1&limit=100',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'nyaa.net',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kEndCalled)]: true,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(kUniqueHeaders)]: null
},
data: `<!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="/cdn-cgi/styles/challenges.css" rel="stylesheet"><meta http-equiv="refresh" content="375"></head><body class="no-js"><div class="main-wrapper" role="main"><div class="main-content"><noscript><div id="challenge-error-title"><div class="h2"><span class="icon-wrapper"><div class="heading-icon warning-icon"></div></span><span id="challenge-error-text">Enable JavaScript and cookies to continue</span></div></div></noscript></div></div><script>(function(){window._cf_chl_opt={cvId: '3',cZone: "nyaa.net",cType: 'managed',cNounce: '97902',cRay: '848ca7e84f572a0c',cHash: '66727afdec2c774',cUPMDTk: "\\/api\\/search?c=3_5&page=1&limit=100&__cf_chl_tk=1TGz8O1v05V4xh1obD.z6K87U9fPwNy9.MQV7qqq88E-1705809685-0-gaNycGzNCyU",cFPWv: 'b',cTTimeMs: '1000',cMTimeMs: '375000',cTplV: 5,cTplB: 'cf',cK: "visitor-time",fa: "\\/api\\/search?c=3_5&page=1&limit=100&__cf_chl_f_tk=1TGz8O1v05V4xh1obD.z6K87U9fPwNy9.MQV7qqq88E-1705809685-0-gaNycGzNCyU",md: "OClPp40GNxQUZpbSBkL5Nn7wGBe8rpEs8CRwb4jnxDg-1705809685-1-AfYXgIuta70GqFDP6UV2JoaG1snVNkkAk7alGv4rL3aOqEPGT4tIheSNMm4DO95aihD0ORLQ5Ee7Gy2yOuJa405jDaNRsV4bIEDXr9-aV2sjzT5p5tAM5VP6K8iGIklfYq0DmrL4DirHrjToL8F36Wpch5j-NOjUCzlm8Jph6ByfOme_cHY4PNWy4JQrFoSouaCP6fkgbpNxQ4ZHw7-7Hit0Ec5hZehNzVwhekbpGeRvayZ4Ocvswm4wVnjl17T0_57PfE2ZusdGvH3dT908kSOTwvlsBz3AVgANPKTodoGRDrYdg9UEghQdf04wrGNpbqjQ7s04uc6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B3Q9IBOGBL8xQHds=',i1: 'i65oAOOqnXSCBUostzh4dw==',i2: 'KyVT8ppvtlcufGvDPBG6Lw==',zh: 'Eu8ZibepMQZ2k7e9ILFqdwT5eyLG8k2Ve+xU+5xfNCE=',uh: 'tqX7J5X7FlE/4CAaA5FI15W41yK7p+9HcsVEI0LeDtQ=',hh: 'OTO6VP+7dRFYl0RCLGiD9ruJ3sFf118P5hII/qO5s1A=',}};var cpo = document.createElement('script');cpo.src = '/cdn-cgi/challenge-platform/h/b/orchestrate/chl_page/v1?ray=848ca7e84f572a0c';window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null, "\\/api\\/search?c=3_5&page=1&limit=100&__cf_chl_rt_tk=1TGz8O1v05V4xh1obD.z6K87U9fPwNy9.MQV7qqq88E-1705809685-0-gaNycGzNCyU" + window._cf_chl_opt.cOgUHash);cpo.onload = function() {history.replaceState(null, null, ogU);}}document.getElementsByTagName('head')[0].appendChild(cpo);}());</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" data-cf-beacon='{"rayId":"848ca7e84f572a0c","version":"2024.1.0","r":1,"token":"c99519ef7fff4924995f22e1ee11d6d2","b":1}' crossorigin="anonymous"></script>\n` +
'</body></html>'
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
[Sun Jan 21 2024 04:01:25 GMT+0000] finished NyaaPantsu scrape
Failed YTS scraping due: Error
at Query.run (/home/node/app/node_modules/sequelize/lib/dialects/postgres/query.js:50:25)
at /home/node/app/node_modules/sequelize/lib/sequelize.js:315:28 {
name: 'SequelizeDatabaseError',
parent: error: invalid input syntax for type integer: "41254,44679"
at Parser.parseErrorMessage (/home/node/app/node_modules/pg-protocol/dist/parser.js:287:98)
at Parser.handlePacket (/home/node/app/node_modules/pg-protocol/dist/parser.js:126:29)
at Parser.parse (/home/node/app/node_modules/pg-protocol/dist/parser.js:39:38)
at Socket.<anonymous> (/home/node/app/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 149,
severity: 'ERROR',
code: '22P02',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: "unnamed portal parameter $6 = '...'",
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'numutils.c',
line: '320',
routine: 'pg_strtoint32',
sql: 'INSERT INTO "files" ("id","infoHash","fileIndex","title","size","imdbId","kitsuId","createdAt","updatedAt") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT DO NOTHING RETURNING "id","infoHash","fileIndex","title","size","imdbId","imdbSeason","imdbEpisode","kitsuId","kitsuEpisode","createdAt","updatedAt";',
parameters: [
'ec69a9f1feafc8b3a5d87357bea4dd9040e6e233',
0,
'Princess.Principal.Crown.Handler.Chapter.1.2021.1080p.BluRay.x264.AAC5.1-[YTS.MX].mp4',
1064762649,
'tt8354164',
'41254,44679',
'2024-01-21 03:55:08.890 +00:00',
'2024-01-21 03:55:08.890 +00:00'
]
},
original: error: invalid input syntax for type integer: "41254,44679"
at Parser.parseErrorMessage (/home/node/app/node_modules/pg-protocol/dist/parser.js:287:98)
at Parser.handlePacket (/home/node/app/node_modules/pg-protocol/dist/parser.js:126:29)
at Parser.parse (/home/node/app/node_modules/pg-protocol/dist/parser.js:39:38)
at Socket.<anonymous> (/home/node/app/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 149,
severity: 'ERROR',
code: '22P02',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: "unnamed portal parameter $6 = '...'",
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'numutils.c',
line: '320',
routine: 'pg_strtoint32',
sql: 'INSERT INTO "files" ("id","infoHash","fileIndex","title","size","imdbId","kitsuId","createdAt","updatedAt") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT DO NOTHING RETURNING "id","infoHash","fileIndex","title","size","imdbId","imdbSeason","imdbEpisode","kitsuId","kitsuEpisode","createdAt","updatedAt";',
parameters: [
'ec69a9f1feafc8b3a5d87357bea4dd9040e6e233',
0,
'Princess.Principal.Crown.Handler.Chapter.1.2021.1080p.BluRay.x264.AAC5.1-[YTS.MX].mp4',
1064762649,
'tt8354164',
'41254,44679',
'2024-01-21 03:55:08.890 +00:00',
'2024-01-21 03:55:08.890 +00:00'
]
},
sql: 'INSERT INTO "files" ("id","infoHash","fileIndex","title","size","imdbId","kitsuId","createdAt","updatedAt") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT DO NOTHING RETURNING "id","infoHash","fileIndex","title","size","imdbId","imdbSeason","imdbEpisode","kitsuId","kitsuEpisode","createdAt","updatedAt";',
parameters: [
'ec69a9f1feafc8b3a5d87357bea4dd9040e6e233',
0,
'Princess.Principal.Crown.Handler.Chapter.1.2021.1080p.BluRay.x264.AAC5.1-[YTS.MX].mp4',
1064762649,
'tt8354164',
'41254,44679',
'2024-01-21 03:55:08.890 +00:00',
'2024-01-21 03:55:08.890 +00:00'
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment