簡體   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