An open API service indexing awesome lists of open source software.

https://github.com/11ways/specter

Phantom wrapper
https://github.com/11ways/specter

Last synced: over 1 year ago
JSON representation

Phantom wrapper

Awesome Lists containing this project

README

          

# Specter

Headless browser wrapper

## Installation

```bash
npm install @11ways/specter
```

## Usage

```js
const Specter = require('@11ways/specter');

let browser = new Specter.Browser(),
tab = browser.createTab();

await tab.goto('https://stad.gent/');

let url = await tab.evaluate(function() {
let img = document.querySelector('img');
return img.src;
});
```