取消图片代理;新增视频链接、自定义cookie

This commit is contained in:
2026-07-19 19:12:06 +08:00
parent 0b6afa0665
commit 3eef54496c
13 changed files with 184 additions and 30 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
import { Throttler } from "../../throttler";
import Axios from "axios";
import { Agent } from "https";
import { handleForbiddenErr, MOCK_UA, TIME_OUT } from "./common";
import { getWeiboCookieHeaders, handleForbiddenErr, MOCK_UA, TIME_OUT } from "./common";
import { logger } from "../../logger";
import { waitMs } from "../../../utils";
@@ -16,7 +16,8 @@ export const createDomainAPI = () => {
const httpsAgent = new Agent({ keepAlive: true });
const axiosInstance = Axios.create({
timeout: TIME_OUT,
httpsAgent
httpsAgent,
headers: getWeiboCookieHeaders(),
});
return {