Giter VIP home page Giter VIP logo

Comments (4)

Camillerkt avatar Camillerkt commented on May 29, 2024

Hello @samchen19950130, the program works with the 2captcha API so you need to create a developer account on 2captcha.com to get your access token.
It's a very cheap service (only 3 USD can be enough).
I invite you to read my documentation to better implement the project: https://github.com/Camillerkt/Multiple-Images-Watermark-Remover

from multiple-images-watermark-remover.

samchen19950130 avatar samchen19950130 commented on May 29, 2024

Hi Camillerkt,

yes, I've already used 2captcha's token... But the processing of the images is still interrupted. Now the situation is a little better, after about 5-10 images it stops working.

You can find my feedback from 10 minutes ago here๏ผš

PuppeteerExtraPluginRecaptcha: An error occured during "getRecaptchaSolutions": {
_vendor: 'recaptcha',
provider: '2captcha',
id: 'j7gb8ezkc1',
requestAt: 2022-07-07T00:24:11.049Z,
error: 'Error: 2captcha error: Error: read ECONNRESET'
}
/Users/sam1995/Downloads/Multiple-Images-Watermark-Remover-master/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:680
const timeoutError = new Errors_js_1.TimeoutError(waiting for ${options.title} failed: timeout ${options.timeout}ms exceeded);
^


TimeoutError: waiting for selector `.hyUBYz` failed: timeout 30000ms exceeded
    at new WaitTask (/Users/sam1995/Downloads/Multiple-Images-Watermark-Remover-master/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:680:34)
    at DOMWorld._waitForSelectorInPage (/Users/sam1995/Downloads/Multiple-Images-Watermark-Remover-master/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:564:26)
    at Object.internalHandler.waitFor (/Users/sam1995/Downloads/Multiple-Images-Watermark-Remover-master/node_modules/puppeteer/lib/cjs/puppeteer/common/QueryHandler.js:34:29)
    at DOMWorld.waitForSelector (/Users/sam1995/Downloads/Multiple-Images-Watermark-Remover-master/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:493:29)
    at Frame.waitForSelector (/Users/sam1995/Downloads/Multiple-Images-Watermark-Remover-master/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:1019:51)
    at Page.waitForSelector (/Users/sam1995/Downloads/Multiple-Images-Watermark-Remover-master/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2265:33)
    at /Users/sam1995/Downloads/Multiple-Images-Watermark-Remover-master/index.js:43:16
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

from multiple-images-watermark-remover.

samchen19950130 avatar samchen19950130 commented on May 29, 2024

btw, if I change the weibsie from https://www.watermarkremover.io/upload to https://www.erase.bg/upload, is it still work? erase is a background remover tools from same company

from multiple-images-watermark-remover.

Camillerkt avatar Camillerkt commented on May 29, 2024

Hi @samchen19950130,
Apparently the problem is with 2captcha. You seem to have the same problem: berstend/puppeteer-extra#452

If this doesn't solve your problem, make sure your headless value is set to false. Then check that the program comes back to the top of the page once the image download is complete.
Then, on line 39 of the original index.js code, increase the value of sleep(). For example: await sleep(5000).
This might slow down your program but try to see if it solves the problem.
Normally this should solve your problem.

If you want the program to work with erase.bg, you need to modify the code by replacing the address on line 27 with https://www.erase.bg/upload and replacing the selectors on lines 43 and 44 with .xNWSV

Have a nice day.

from multiple-images-watermark-remover.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.