直接自动下载某个网页的html脚本

发布网友

我来回答

2个回答

热心网友

自动下载URL到文件可用URLDownloadToFile(),
MS VC++ 和 SDK 中都有它. 参数说明和CALLBACK 请查VC++ 里的说明.

HRESULT URLDownloadToFile(
LPUNKNOWN pCaller,
LPCWSTR szURL,
LPCTSTR szFileName,
DWORD dwReserved,
LPBINDSTATUSCALLBACK lpfnCB
);

URLDownloadToFile downloads bits from the Internet and saves them to a file. The client can choose to be notified of progress via a notification callback.

热心网友

用dom哈
document.text就是全部的html文本
window.body.text是body范围内的html文本

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com