当前位置:网站首页>DGIoT网页代理
DGIoT网页代理
2022-08-07 05:13:00 【DGIOT平台】
反向代理
| 字段 | 值 |
|---|---|
| 源路径 | keypath |
| 源host | 127.0.0.1:5080 |
| 目标host | www.iotn2n.com |
| 协议 | http |
| x-forwarded-for | true |
配置词典内容如下:
{
"key":"keypath",
"data":{
"host": "www.iotn2n.com",
"protocol": "http",
"x-forwarded-for": true
}
}
在浏览器里面输入
http://127.0.0.1:5080/dgiotproxy/[keypath]/[otherpath]
则返回反向代理路径结果
http://www.iotn2n.com/[otherpath]
爬虫代理
htlm->tokens功能
功能类似于 BeautifulSoup 的爬虫功能
[{<<"class">>,<<"my-photo">>},{<<"alt">>,<<"loading">>},{<<"style">>,<<"cursor: pointer;">>},{<<"data-src">>,<<"http://132.232.12.21:8012/202158151241/0.jpg">>},{<<"src">>,<<"images/loading.gif">>}]
shuwa_html:find(WordPreview, {<<"img">>, {<<"class">>, <<"my-photo">>}}, <<"data-src">>)
网页代理
tokens->html功能
可以动态生成网页
开源代码下载:https://gitee.com/dgiiot/dgiot
有问反馈给我们 https://gitee.com/dgiiot/dgiot/issues
商务合作vx:dgiotcs
QQ支持一群:346566935
边栏推荐
猜你喜欢

「SwiftUI」Gradient渐变颜色填充效果

2021-01-05

Differences in the soft serial port bit time function of different series of STC microcontrollers

Small P weekly, Vol. 14

IDEA:JSP发送post请求 控制台打印中文乱码

循环栅栏 CycleBarrier 理解到深入
![[Graduation Project] Automatic gas station refueling system based on STM32 - Internet of Things, microcontroller, embedded](/img/29/ec3a7b2406d96bbf1de9b21c8a633d.png)
[Graduation Project] Automatic gas station refueling system based on STM32 - Internet of Things, microcontroller, embedded

【DGIOT】支持远程打印条码/二维码和一码设备全生命周期管理

uni-app快速入门知识总结

远程连接 redis 时,报错 (error) DENIED Redis is running in protected mode because protected mode is enabled
随机推荐
富滇银行完成数字化升级|OceanBase数据库助力布局分布式架构中台
页面底部出现横向滚动条解决方法
CVE-2020-15148 Yii反序列化漏洞复现
软删除源码分析
Redis 常用数据类型之 set(集合)
微信小程序获取用户头像和昵称
SQL 改写系列六:谓词推导
Linear Algebra Study Notes 3-4: Describe the spatial compression of linear transformations (column space, rank)
DGIOT物联网开源平台——天翼云部署
「SwiftUI」Alert弹窗
万物并作,吾以观复|OceanBase 政企行业实践
「SwiftUI」页面自定义右滑关闭
端到端的基于深度学习的网络入侵检测方法
无聊的冷知识5
洛谷P2432 zxbsmk爱查错
洛谷P1189 `SEARCH`
phpoffice/phpspreadsheet的使用(export篇)
共享设备租赁小程序开发制作功能介绍
FileInputStream与BufferedInputStream有哪些区别?
happens-before rule and thread singleton safety exercise