phantomas参数选项

PhantomJS-based web performance metrics collector

phantomas <url> [options]

General options:
--url Set URL to work with
--version, -V Show version number and quit
--help, -h This help text
--verbose, -v print debug messages to the console
--debug run PhantomJS in debug mode
--modules run selected modules only [moduleOne],[moduleTwo],...
--include-dirs load modules from specified directories [dirOne],[dirTwo],...
--skip-modules skip selected modules [moduleOne],[moduleTwo],...
--config uses JSON or YAML-formatted config file to set parameters
Client options:
--engine [experimental] select engine used to run the phantomas [webkit|gecko]
--phone force viewport and user agent of a mobile phone
--tablet force viewport and user agent of a tablet
--viewport phantomJS viewport dimensions [width]x[height [default: 1280x1024]
--user-agent provide a custom user agent
HTTP options:
--auth-user sets the user name used for HTTP authentication
--auth-pass sets the password used for HTTP authentication
--cookie document.cookie formatted string for setting a single cookie (e.g. "bar=foo;domain=url")
--cookies-file specifies the file name to store the persistent Cookies
--ignore-ssl-errors ignores SSL errors, such as expired or self-signed certificate errors
--proxy specifies the proxy server to use (e.g. --proxy=192.168.1.42:8080)
--proxy-auth specifies the authentication information for the proxy (e.g. --proxy-auth=username:password)
--proxy-type specifies the type of the proxy server [http|socks5|none]
--ssl-protocol sets the SSL protocol for secure connections [sslv3|sslv2|tlsv1|any] [default: "any"]
Runtime options:
--allow-domain allow requests to given domain(s) - aka whitelist [domain],[domain],...
--block-domain disallow requests to given domain(s) - aka blacklist [domain],[domain],...
--disable-js disable JavaScript on the page that will be loaded
--no-externals block requests to 3rd party domains
--post-load-delay wait X seconds before generating a report
--runs number of runs to perform
--scroll scroll down the page when it's loaded
--spy-eval report calls to eval()
--stop-at-onload stop phantomas immediately after onload event
--timeout timeout for phantomas run [default: 15]
--wait-for-event wait for a given phantomas event before generating a report
--wait-for-selector wait for an element matching given CSS selector before generating a report
--socket [experimental] use provided UNIX socket for IPC
Output and reporting:
--analyze-css [experimental] emit in-depth CSS metrics
--colors forces ANSI colors even when output is piped
--film-strip register film strip when page is loading (a comma separated list of milliseconds can be passed)
--film-strip-dir folder path to output film strip (default is ./filmstrip directory)
--har save HAR to a given file
--log log to a given file
--page-source [experimental] save page source to file
--page-source-dir [experimental] folder path to output page source (default is ./html directory)
--progress shows page loading progress bar (disables verbose mode)
--reporter, -R, --format output format / reporter [default: "plain"]
--screenshot render fully loaded page to a given file
--silent don't write anything to the console

转载于:https://www.cnblogs.com/NiceTime/p/8567649.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值