How can i get content of web-page

前端 未结 3 1427
误落风尘
误落风尘 2020-12-06 02:26

i\'m trying to get web-page data in string that than i could parse it. I didn\'t found any methods in qwebview, qurl and another. Could you help me? Linux, C++, Qt.

3条回答
  •  半阙折子戏
    2020-12-06 02:58

    Paul Dixon's answer is probably the best approach but Jesse's answer does touch something worth mentioning.

    cURL -- or more precisely libcURL is a wonderfully powerful library. No need for executing shell scripts and parsing output, libCURL is available C,C++ and more languages than you can shake an URL at. It might be useful if you are doing some weird operation (like http POST over ssl?) that qt doesnt support.

提交回复
热议问题