DGIoT网页代理

反向代理

字段
源路径keypath
源host127.0.0.1:5080
目标hostwww.iotn2n.com
协议http
x-forwarded-fortrue

配置词典内容如下:

{
"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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值