All Projects → amir20 → Phantomjs Node

amir20 / Phantomjs Node

Licence: isc
PhantomJS integration module for NodeJS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Phantomjs Node

TRA-Ticket-Booker
(已不適用新版臺鐵訂票系統,且不再更新)台灣鐵路訂票應用程式(臺鐵 / 台鐵 / 訂單程票 / 訂來回票),基於 Selenium + PyQt4。
Stars: ✭ 26 (-99.27%)
Mutual labels:  phantomjs, phantomjs-process
Responsive mockups
Takes screenshots of a webpage in different resolutions and automatically applies it to mockup templates.
Stars: ✭ 274 (-92.27%)
Mutual labels:  phantomjs
www-mechanize-phantomjs
Automate Javascript/Ajax websites with Perl and PhantomJS
Stars: ✭ 19 (-99.46%)
Mutual labels:  phantomjs
TqExtension
Test your Drupal 7 (D8 in progress) sites easier with TqExtension for Behat.
Stars: ✭ 13 (-99.63%)
Mutual labels:  phantomjs
phantom-lord
Handy API for Headless Chromium
Stars: ✭ 24 (-99.32%)
Mutual labels:  phantomjs
chromate
Automate Headless Chrome.
Stars: ✭ 36 (-98.98%)
Mutual labels:  phantomjs
jazeee-meteor-spiderable
Fork of Meteor Spiderable with longer timeout, caching, better server handling
Stars: ✭ 33 (-99.07%)
Mutual labels:  phantomjs
Browsershot
Convert HTML to an image, PDF or string
Stars: ✭ 3,526 (-0.51%)
Mutual labels:  phantomjs
node-qunit-phantomjs
Run QUnit unit tests in a headless PhantomJS instance without using Grunt
Stars: ✭ 36 (-98.98%)
Mutual labels:  phantomjs
intransient capybara
A set of improvements to Minitest/Capybara/Poltergeist/PhantomJS test stack that reduces the occurrence of transient failures.
Stars: ✭ 25 (-99.29%)
Mutual labels:  phantomjs
pyCreeper
一个用来快速提取网页内容的信息采集(爬虫)框架, 实现了对网页的动态加载与控制。
Stars: ✭ 25 (-99.29%)
Mutual labels:  phantomjs
siteshooter
📷 Automate full website screenshots and PDF generation with multiple viewport support.
Stars: ✭ 63 (-98.22%)
Mutual labels:  phantomjs
java-phantomjs-wrapper
A Java wrapper around the PhantomJS binaries including a packaged HTML to PDF render script
Stars: ✭ 54 (-98.48%)
Mutual labels:  phantomjs
pyderman
Install Selenium-compatible Chrome/Firefox/Opera/PhantomJS/Edge webdrivers automatically.
Stars: ✭ 24 (-99.32%)
Mutual labels:  phantomjs
Phantomjs
Go client for PhantomJS.
Stars: ✭ 278 (-92.16%)
Mutual labels:  phantomjs
ComicSpider
动漫之家漫画站电脑版原图爬虫
Stars: ✭ 67 (-98.11%)
Mutual labels:  phantomjs
kick-off-web-scraping-python-selenium-beautifulsoup
A tutorial-based introduction to web scraping with Python.
Stars: ✭ 18 (-99.49%)
Mutual labels:  phantomjs
img-cli
An interactive Command-Line Interface Build in NodeJS for downloading a single or multiple images to disk from URL
Stars: ✭ 15 (-99.58%)
Mutual labels:  phantomjs
Node Html Pdf
📄 Html to pdf converter in nodejs. It spawns a phantomjs process and passes the pdf as buffer or as filename.
Stars: ✭ 3,364 (-5.08%)
Mutual labels:  phantomjs
Slimerjs
A scriptable browser like PhantomJS, based on Firefox
Stars: ✭ 2,984 (-15.8%)
Mutual labels:  phantomjs

Notice

Development on this project has been suspended due to lack of support for PhantomJs.

phantom - Fast NodeJS API for PhantomJS

NPM

NPM Version NPM Downloads Linux Build Node Version

Super easy to use

const phantom = require('phantom');

(async function() {
  const instance = await phantom.create();
  const page = await instance.createPage();
  await page.on('onResourceRequested', function(requestData) {
    console.info('Requesting', requestData.url);
  });

  const status = await page.open('https://stackoverflow.com/');
  const content = await page.property('content');
  console.log(content);

  await instance.exit();
})();

Using Node v7.9.0+ you can run the above example with node file.js

See examples folder for more ways to use this module.

Use it with npx

You can quickly test any website with phantomjs-node without needing to install the package.

$ npx phantom@latest https://stackoverflow.com/

The above command is very useful to test if your website works on older browsers. I frequently use it to ensure polyfills have been installed correctly.

Deprecation warnings of PhantomJs

In March 2018, the owner of PhantomJS announced suspension of development. There hasn't been any updates since. Since phantomjs-node is only a wrapper around phantomjs, then you should use it at your own risk because the underlying dependency is no longer supported. I plan to maintain this project until usage has dropped significantly.

Installation

Node v6.x and later

Latest version of phantom does require Node v6.x and later. You can install with

$ npm install phantom --save

Node v5.x

To use version 3.x you need to have at least Node v5+. You can install it using

$ npm install phantom@3 --save

Versions older than 5.x, install with

$ npm install phantom@2 --save

Documents

Pooling

Creating new phantom instances with phantom.create() can be slow. If you are frequently creating new instances and destroying them, as a result of HTTP requests for example, it might be worth creating a pool of instances that are re-used.

See the phantom-pool module for more info.

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

Contributing

This package is under development. Pull requests are welcomed. Please make sure tests are added for new functionalities and that your build does pass in TravisCI.

People

The current lead maintainer is Amir Raminfar

List of all contributors

License

ISC

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].