Read HTML source to string

后端 未结 4 1503
臣服心动
臣服心动 2021-02-06 16:22

I hope you don\'t frown on me too much, but this should be answerable by someone fairly easily. I want to read a file on a website into a string, so I can extract information fr

4条回答
  •  猫巷女王i
    2021-02-06 16:57

    If all you want to do is grab the entire HTML code without any kind of parsing and extern libraries, my sugestion would be copying the code with a IO stream into a string.

    It is the simplest way that I have in mind but be aware that it isn't the most efficient way to do it.

提交回复
热议问题