Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

puppeteer - 如何启动浏览器输入验证码并指定下载文件路径?(How to lauch a browser to input a captcha and specify the download file path?)

If you access the following URL for the first time, it will ask you to input captcha.

(如果您是第一次访问以下URL,它将要求您输入验证码。)

Then the file will be downloaded.

(然后将下载文件。)

Could anybody show me how to make a puppeteer program with the URL and output filename specified in the command line so that the user can input the captcha in the browser launched?

(有人可以告诉我如何使用在命令行中指定的URL和输出文件名制作一个伪造程序,以便用户可以在启动的浏览器中输入验证码吗?)

https://cyber.sci-hub.se/MTAuMTAwNy9zMTMxOTctMDE4LTM0MzAtNQ==/yang2018.pdf

(https://cyber.sci-hub.se/MTAuMTAwNy9zMTMxOTctMDE4LTM0MzAtNQ==/yang2018.pdf)

For example, the program should be called in this way.

(例如,应该以这种方式调用程序。)

$ ./myprog.sh https://cyber.sci-hub.se/MTAuMTAwNy9zMTMxOTctMDE4LTM0MzAtNQ==/yang2018.pdf output.pdf
  ask by user1424739 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...