这是我的代码,我目前有。由于某种原因,它的工作,我切换到一个新的文件夹,现在得到这个错误。所有的模块都重新安装在package.json文件。有任何修复这个问题。
const puppeteer = require('puppeteer');
const get = require('http');
const Server = require('https');
const pathToFileURL = require('url');
const path = require ('./path.json');
const shippinginfo = require('./shippinginfo.json');
const Discord = require('discord.js');
const fs = require('fs');
const { prefix, token} = require('./config.json');
const client = new Discord.Client();
client.commands = new Discord.Collection();
const config = require('./config.json');
const puppeteer2 = require("puppeteer-extra")
const webhookClient = new Discord.WebhookClient(config.webhookID, config.webhookToken);
const fetch = require('node-fetch');
const cookies = fs.readFileSync('./cookies.json', '');
const RecaptchaPlugin = require('puppeteer-extra-plugin-recaptcha');
const captchatoken = require("./token.json");
const request = require('request-promise-native');
const poll = require('promise-poller').default;
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
const apiKey = config.apikey
var userAgent = require('user-agents');
puppeteer2.use(
RecaptchaPlugin({
provider: { id: '2captcha', token: "aa40e25b217d84b26ba0e4b3928bc51d" },
visualFeedback: true // colorize reCAPTCHAs (violet = detected, green = solved)
})
)
puppeteer2.use(StealthPlugin())
1条答案
按热度按时间ttygqcqt1#