⑴ 如何提取网页中的内容

有用又简单的办法:
工具——Internet选项——安全——自定义级别——设置
找到脚本的设置,
即Java小程序脚本、活动脚本和允许通过脚本进行粘贴
设置三个脚本为禁用。(允许通过脚本进行粘贴脚本设置也可为启用)
确定后,刷新网页。一切OK

特别提醒:用完后一定记得要重新将三个脚本设置还原为 启用,要不网页显示会不正常。

⑵ 取得 html 页面中的数据

URL url = new URL("http://www..com");
InputStream stream = url.openStream();

这样可以获得路径的全部信息,下面怎么做就要自己去分解了。

需要什么自己提取。

给你个例子:
public static void main(String[] args) {
try {
URL url = new URL("http://www..com");
InputStream stream = url.openStream();
OutputStream bos = new FileOutputStream("c:/text.html");
int bytesRead = 0;
byte[] buffer = new byte[8192];
while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
bos.write(buffer, 0, bytesRead);
}
stream.close();
} catch (Exception e) {
e.printStackTrace();
}
}

⑶ 如何获取网页中的json数据

1、首先打开你编写网页程序的软件

⑷ vba提取网页数据

下面的代码就可以:

OptionExplicit

Sub批量获取网页内容()
Dimhttp,Pols,Arr,i,u
Sethttp=CreateObject("Microsoft.XMLHTTP")
i=1
ForEachuInArray("url1","url2")
http.Open"POST",u,False
http.send""
Ifhttp.Status=200Then
Cells(i,1)=http.responseText
i=i+1
EndIf
Nextu
Sethttp=Nothing
EndSub


url1、url2就是你的网址,有多少写多少,每一专属个都要一http开头(然后是冒号和两个斜线)的完整地址。

⑸ 怎么获取别的网页上的数据

用WebRequest方法获取网站的数据:
private string GetStringByUrl(string strUrl)
{
WebRequest wrt = WebRequest.Create(strUrl);
WebResponse wrse = wrt.GetResponse();
Stream strM = wrse.GetResponseStream();
StreamReader SR = new StreamReader(strM, Encoding.GetEncoding("gb2312"));
string strallstrm = SR.ReadToEnd();
return strallstrm;
}

然后自己写方法处理里面的数据来专获取你属想要的值

⑹ 怎样提取某个网页的数据

用WebRequest方法获取网站的数据:
private string GetStringByUrl(string strUrl)
{
WebRequest wrt = WebRequest.Create(strUrl);
WebResponse wrse = wrt.GetResponse();
Stream strM = wrse.GetResponseStream();
StreamReader SR = new StreamReader(strM, Encoding.GetEncoding("gb2312"));
string strallstrm = SR.ReadToEnd();
return strallstrm;
}

然后自己写方法处理里面的数据来获取你想要的值

⑺ 获取网页内容的几种方法

Byte[] pageData = MyWebClient.DownloadData(tbUrl.Text); //从指定网站下载数据 string pageHtml = Encoding.Default.GetString(pageData); //把字节转化为字符串,注意编码方式 2、使用WebBrowser控件 //通过WebBrowser空间访问网页,然后获取网页数据 WebBrowser web = new WebBrowser(); web.Navigate(tbUrl.Text); web.DocumentCompleted += new (web_DocumentCompleted); //当网页加载完成时触发该事件,获取网页数据 void web_DocumentCompleted(object sender, e){//获取该html页面内的Table标签的内容 WebBrowser web = (WebBrowser)sender; HtmlElementCollection ElementCollection = web.Document.getElementsByTagName_r("Table"); foreach (HtmlElement item in ElementCollection) { textBox1.AppendText(item.InnerText + "\n");} }3、使用HttpWebRequest/HttpWebResponse HttpWebRequest httpReq; HttpWebResponse httpResp; Uri httpURL = new Uri(this.tbUrl.Text); httpReq = (HttpWebRequest)WebRequest.Create(httpURL); httpResp = (HttpWebResponse)httpReq.GetResponse(); Stream respStream = httpResp.GetResponseStream(); //得到数据流,再把数据流转化为特定的数据(图片,文本。。。)

⑻ 如何提取整个网页的全部内容

浏览器中点 文件-页面另存为-写入文件名选择存放位置。就可以把整个页面包括脚本CSS都保存下来了。

⑼ 怎么获取网页上的内容

是一个网站还是单独的网页,网站的话,找找那些脱机浏览的软件,单独网页的话,不回如把那个网页另存答,等多了就做个chm

你可以用傲游那个浏览器软件,他里面有个屏幕截图的功能是,可以把浏览器中屏幕显示的地方抓下来存成图片。不过要是内容过大,一个屏幕显示不过来的就抓不全了

⑽ 如何抓取网页上的数据

工具推荐你用免费的八爪鱼采集器,这种表格你需要实时抓取的话也可以,需要设置采集周期为实时采集,八爪鱼采集器最快支持1分钟采集一次的。采集表格也不难,点击你需要采集的列,设置循环采集所有行就可以。