このコミットが含まれているのは:
sinkaroid 2023-02-11 00:03:46 +07:00
コミット f824941318
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: ABD69470B2390135
1個のファイルの変更5行の追加5行の削除

ファイルの表示

@ -5,20 +5,20 @@ import * as dotenv from "dotenv";
dotenv.config();
const jar = new CookieJar();
jar.setCookie(process.env.CF_COOKIE || "", "https://nhentai.net/");
jar.setCookie(process.env.COOKIE || "", "https://nhentai.net/");
async function test() {
const res = await p({
url: "https://nhentai.net/api/galleries/search?query=futa",
url: "https://nhentai.net/api/gallery/1",
core: {
agent: new HttpsCookieAgent({ cookies: { jar, }, }),
},
"headers": {
"User-Agent": "jandapress/1.0.5 Node.js/16.9.1" // nhentai-api-client/3.4.3 Node.js/16.9.1
"User-Agent": process.env.USER_AGENT || "jandapress/1.0.5 Node.js/16.9.1",
},
});
//check status
console.log(res.statusCode);
}
test();
test().catch(console.error);