• 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

  • 相关阅读:
    微服务迁移记(二):注册中心(consul搭建)
    微服务迁移记(一):技术架构
    小程序入坑记录
    不思量,自难忘:我的10年程序生涯
    your password has expired.to log in you must change it
    Javascript中 a.href 和 a.getAttribute('href') 结果不完全一致
    PHP不使用递归的无限级分类
    百度移动搜索自动转码太坑爹,JS跳转地址会被抓取
    iScroll 下 a 标签失效
    浏览器的云加速可能导致IP统计异常
  • 原文地址:https://www.cnblogs.com/NiceTime/p/8567649.html
Copyright © 2020-2023  润新知