如何从网站获取文本。 [英] How do I get text from a website.

查看:153
本文介绍了如何从网站获取文本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ex网站:https://www.test.textFile.txt/



如果网站包含文字,我将如何从该网站获取文字:< br $> b $ b你好世界



我尝试过:



向网站发布Http请求以获取文本。

Ex Website: https://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 [ ^ ]

* 还有更多! [<小时ef =http://bfy.tw/DqQktarget =_ blanktitle =新窗口> ^ ]
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![^]


这篇关于如何从网站获取文本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆