{"size": 491, "ext": "js", "max_stars_repo_path": "examples/twitter.js", "max_stars_repo_name": "mmkal/chromeless", "max_stars_repo_stars_event_min_datetime": "2017-07-26T14:44:01.000Z", "max_stars_repo_stars_event_max_datetime": "2018-05-15T06:12:59.000Z", "max_issues_repo_path": "examples/twitter.js", "max_issues_repo_name": "sheboftek/chromeless", "max_issues_repo_issues_event_min_datetime": "2017-07-26T15:20:38.000Z", "max_issues_repo_issues_event_max_datetime": "2018-05-15T06:57:07.000Z", "max_forks_repo_path": "examples/twitter.js", "max_forks_repo_name": "Acidburn0zzz/chromeless", "max_forks_repo_forks_event_min_datetime": "2017-07-26T19:40:09.000Z", "max_forks_repo_forks_event_max_datetime": "2018-05-13T03:37:32.000Z"}
{"max_stars_count": 12927, "max_issues_count": 373, "max_forks_count": 566, "avg_line_length": 22.3181818182, "max_line_length": 48, "alphanum_fraction": 0.6802443992}
const { Chromeless } = require('chromeless')

const twitterUsername = "xxx"
const twitterPassword = "xxx"

async function run() {
  const chromeless = new Chromeless()

  const screenshot = await chromeless
    .goto('https://twitter.com/login/')
    .type(twitterUsername, '.js-username-field')
    .type(twitterPassword, '.js-password-field')
    .click('button[type="submit"]')
    .wait('.status')
    .screenshot()

  await chromeless.end()
}

run().catch(console.error.bind(console))

