简体   繁体   English

Linux脚本以选择一个选项并从网页下载结果文件

[英]Linux script to select an option & download resulting file from web page

Is there any way to write a linux script to press a button on a webpage and download the file generated? 有什么方法可以编写Linux脚本来按下网页上的按钮并下载生成的文件? Here is the website.. http://kos.twojeip.net 这是网站。.http://kos.twojeip.net

I need to write a script that presses "Pobierz wszystkie" (Download ALL), Its the 3rd button from the left on top.... 我需要编写一个脚本,按“ Pobierz wszystkie”(全部下载),它是从左上方第三个按钮。

I was playing with lynx & wget but not having any joy as there are no html links.. 我当时在玩山猫和wget,但没有任何快乐,因为没有html链接。

您所要做的就是将极长的URL用双引号引起来,并使用-O (大写字母O)选项进行wget:

wget -O output.txt "http://.... extremely long URL "

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM