We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AddToQueue, AddToQueueData, appInfo, DbHelperUi, FromQueue, Job, JobOverride, Launcher, OnStart, Page, PuppeteerUtil, PuppeteerWorkerFactory, RequestUtil, OnTime } from "ppspider"; class TestTask { @OnStart({ urls: [ "https://api.ipify.org/?format=json" ], parallel: 3, exeInterval: 1000, timeout: 60000 }) async onStart(page: Page, job: Job) { page.setDefaultTimeout(60000); page.setDefaultNavigationTimeout(60000); await PuppeteerUtil.setImgLoad(page, false); // await PuppeteerUtil.useProxy(page, "http://127.0.0.1:2007"); await PuppeteerUtil.useProxy(page, "socks://27.157.253.114:18917"); await page.goto(job.url); console.log(await page.evaluate(() => document.title)); } } @Launcher({ workplace: "workplace", tasks: [ TestTask ], workerFactorys: [ new PuppeteerWorkerFactory({ headless: false, devtools: true }) ], webUiPort: 9001 }) class App {}
按照例子写的使用代理的代码。但是调试发现请求失败,无论怎么换代理,并且代理已经通过测试确实可以使用。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
按照例子写的使用代理的代码。但是调试发现请求失败,无论怎么换代理,并且代理已经通过测试确实可以使用。
The text was updated successfully, but these errors were encountered: