• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

SeimiAgent: 一个无界面,独立部署运行在服务器端的webkit服务器,用来支持自动化测试 ...

原作者: [db:作者] 来自: 网络 收藏 邀请

SeimiAgent

A headless,standalone webkit server which make grabing dynamic web page easier.

中文文档

DownLoad

Quick Start

cd /dir/of/seimiAgent./seimiagent -p 8000

SeimiAgent will start and listen on the port that you set.Than you can use any http client tools post a load reqest to SeimiAgent and get back the content which just like chrome do.Http client tools you can use:apache httpclient of java,curl of cmd,httplib2 of python including, but not limited to.

Demonstrates

  • basic

demo

you can see it here,if it is loaded fail in github

  • significantly simplify the login of a complex system by using js

you can view video in blog.

Http parameters that seimiAgent support

Only support post.Request path:/doload

  • urlyour target url

  • renderTimeHow long time you hope to give seimiAgent to process javascript action and document after load finashed.Milliseconds.

  • proxyTell SeimiAgent to use proxy.Pattern:http|https|socket://user:passwd@host:port

  • postParamJson string only,tell seimiAgent you want to use http post method and pass the parameters in postParam.

  • useCookieIf useCookie==1,seimiAgent deem you want to use cookie.Default 0.

  • contentTypeDetermine the output format,you can choose img or pdf,default is html.

  • scriptA javascript script which can operate current html document and just seem like in chrome console to execute.

  • uaSet your userAgent

  • resourceTimeoutSet resource request timeout,such as js resource etc.Default resource timeout 20000ms.

How to build

It will take a very long time to build,so it is recommended to use the premade binary file in 'Download'.

##Requirements##

  • on ubuntu
sudo apt-get install build-essential g++ flex bison gperf ruby perl libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev libpng-dev libjpeg-dev python libx11-dev libxext-dev
  • on centos
yum -y install gcc gcc-c++ make flex bison gperf ruby openssl-devel freetype-devel fontconfig-devel libicu-devel sqlite-devel libpng-devel libjpeg-devel

Build

python build.py

Then wait or take a cup of tea.

More

More Doc is on his way...


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap