<commit_before># phantom-wd

A webdriver (using [wd](https://github.com/admc/wd)) wrapper around [PhantomJS]().

PhantomJS must be installed and available on the `PATH` for this package to work.

## Usage

``javascript
var phantom = require("phantom-wd");

var browserPromise = phantom({
    debug: false       // boolean, console.log Phantom output
});
```

`browserPromise` is a promise for `wd.promiseRemote`.

```javascript
browserPromise
.then(function (browser) {
    return browser.get("http://google.com/")
    .then(function () {
        return browser.execute("return window.title");
    })
    .then(function (title) {
        console.log(title);

        // This both shuts down the webdriver connection and kills PhantomJS
        return browser.quit()
    })
})
.done();
```<commit_msg>Correct link and code in readme<commit_after># phantom-wd

A webdriver (using [wd](https://github.com/admc/wd)) wrapper around [PhantomJS](http://phantomjs.org/).

PhantomJS must be installed and available on the `PATH` for this package to work.

## Usage

```javascript
var phantom = require("phantom-wd");

var browserPromise = phantom({
    debug: false       // boolean, console.log Phantom output
});
```

`browserPromise` is a promise for `wd.promiseRemote`.

```javascript
browserPromise
.then(function (browser) {
    return browser.get("http://google.com/")
    .then(function () {
        return browser.execute("return window.title");
    })
    .then(function (title) {
        console.log(title);

        // This both shuts down the webdriver connection and kills PhantomJS
        return browser.quit()
    })
})
.done();
```
{'fraction_non_alphanumeric': 0.14146341463414633, 'fraction_numerical': 0.0, 'mean_word_length': 3.3877005347593583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3329388', 'n_tokens_mistral': 511, 'n_tokens_neox': 473, 'n_words': 143}