如何从网站获取文本。

编程入门 行业动态 更新时间:2024-10-10 07:22:37
本文介绍了如何从网站获取文本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Ex网站:https://www.test.textFile.txt/ 如果网站包含文字,我将如何从该网站获取文字: b $ b你好世界 我尝试过: 向网站发布Http请求以获取文本。

Ex Website: www.test.textFile.txt/ How would I get text from this site if the site contained the text: "Hello World" What I have tried: Posting Http Requests to the site to get the text.

推荐答案

我没有在LUA中编程,但此Google搜索应该有一些有用的东西你: lua http请求 [ ^ ] ...解决方案如: * LuaSocket:HTTP支持 [ ^ ] * GitHub - daurnimator / lua-http:HTTP Lua图书馆。支持HTTP(S)1.0,1.1和2.0;客户端和服务器。 [ ^ ] * GitHub - pintsized / lua-resty-http:用于OpenResty / ngx_lua的Lua HTTP客户端cosocket驱动程序。 [ ^ ] * GitHub - JakobGreen / lua-requests:请求Lua! [ ^ ] * 使用lua socket http.request下载网页 - Stack Overflow [ ^ ] * 还有更多! [ ^ ] I don't program in LUA, but this Google Search should have something useful for you: lua http request[^] ... solutions like: * LuaSocket: HTTP support[^] * GitHub - daurnimator/lua-http: HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.[^] * GitHub - pintsized/lua-resty-http: Lua HTTP client cosocket driver for OpenResty / ngx_lua.[^] * GitHub - JakobGreen/lua-requests: Requests for Lua![^] * Downloading web page using lua socket http.request - Stack Overflow[^] * and lots more![^]

更多推荐

如何从网站获取文本。

本文发布于:2023-11-27 18:52:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639199.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本   网站

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!