1281| 7
|
lisp如何获取网页中的文字内容 |
5明经币
最佳答案(defun try-get-url(url / ob html)
(setq ob (vlax-create-object "Msxml2.XMLHTTP"))
(vlax-invoke-method ob "open" "get" url "false")
(vlax-invoke-method ob 'setRequestHeader "If-Modified-Since" "q");强制刷新
(if (vl-catch-all-error-p (vl-catch-all-apply 'vlax-invoke-method (list ob "send")))
(progn
(setq html nil);无网络连 ...
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| |