Windows Batch / parse data from html web page

前端 未结 2 939
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-07 06:28

Is it possible to parse data from web html page using windows batch?

let\'s say I have a web page: www.domain.com/data/page/1 Page source html:

...
&         


        
2条回答
  •  我在风中等你
    2021-01-07 07:00

    If you just need to get /post/view/664654, you can use grep command, e.g.

    grep -o '/post/view/[^"]\+' *.html
    

    For parsing more complex HTML, you can use HTML-XML-utils or pup.

提交回复
热议问题