繁体   English   中英

如何在 Linux 命令行中使用 wget 将网页内容下载到 .txt 文件?

[英]How to download the contents of a web page on to a .txt file using wget in Linux command line?

我试图从中下载的页面(组成联系信息):

http://www.filltext.com/?rows=1000&nro={index}&etunimi={firstName}&sukunimi={lastName}&email={email}&puhelinnumero={phone}&pituus={numberRange|150,200}&syntymaaika={date|10-01-1950,30-12-1999}&postinumero={zip}&kaupunki={city}&maa={country}&pretty=true

我一直在使用的命令(我尝试了很多不同的选项等):

wget -r -O -F [filename] URL

它的工作原理是将网页内容下载到文件中,但它不是单元格内的原始数据,它只是一堆大括号。

大括号代替联系信息

如何下载实际的原始数据而不是 JSON 文件? 任何帮助将不胜感激!

谢谢你。

你想要像wget google.com -q -O -这样的东西吗?

暂无
暂无

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

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