Load the homepage after logging in to the https://hessenergy.com website

npm install hess-load-account-homepage
1 downloads in the last week
4 downloads in the last month

Hess Load Account Homepage

Navigate to the account homepage on the the Hess Energy website https://hessenergy.com.


npm install -S hess-load-account-homepage


Login with a given username and password. THen call the load account homepage module. If the account homepage is loaded correctly, the module will return a cheerio object of the account homepage html

var performLogin = require('hess-login')
var loadAccountHomepage = require('hess-load-account-homepage')
var username = 'fooUsername'
var password = 'fooPassword'
var currentLogin = {
  username: username,
  password: password
performLogin(currentLogin, function (err, reply) {
  if (err) {
    inspect(err, 'error performing login')
  loadAccountHomepage(jar, function (err, $) {
    if (err) {
      inspect(err, 'error loading account homepage')
    // $ is a cheerio object of the loaded account homepage.
    inspect('account homepage loaded correctly')


# install development dependencies
npm install
# run tests
npm test
npm loves you