Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison with PhantomJS #4

Open
dandv opened this issue Feb 4, 2014 · 3 comments

Comments

Projects
None yet
4 participants
@dandv
Copy link

commented Feb 4, 2014

How does mechanize-js compare to PhantomJS?

@braco

This comment has been minimized.

Copy link

commented Apr 3, 2014

Examples & documentation are lacking!

@drahmel

This comment has been minimized.

Copy link
Contributor

commented Aug 30, 2014

Mechanize-js is very lightweight -- it does the equivalent of CURL to pages and processes them which using JavaScript execution of code on the page. That means it can execute much faster than PhantomJS, but loses the ability to execute JavaScript that is included on the page.

@srveit

This comment has been minimized.

Copy link
Owner

commented Sep 2, 2014

Dan,

That is an important point about not being able to execute JavaScript
included on the page. Some modern front-end frameworks like AngularJS rely
on the browser to create the HTML (DOM) from templates loaded from the
server. If you want to scrape these types of sites you can use PhantomJS or
determine what API calls are made to the backend server and use those.
AngularJS generally works with JSON APIs so you may be able to access those
APIs directly and not need to "scrape" to get access to the data a webapp
presents.

On Sat, Aug 30, 2014 at 4:20 PM, Dan Rahmel notifications@github.com
wrote:

Mechanize-js is very lightweight -- it does the equivalent of CURL to
pages and processes them which using JavaScript execution of code on the
page. That means it can execute much faster than PhantomJS, but loses the
ability to execute JavaScript that is included on the page.


Reply to this email directly or view it on GitHub
#4 (comment).

Stephen Veit
314-616-9688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.