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

API feedback #1

Closed
maxogden opened this Issue Jul 14, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@maxogden
Owner

maxogden commented Jul 14, 2015

this is a new module i'm working on that wraps electron in an API suitable for scraping, automation etc.

I'm interested in getting early feedback on the JS API + semantics I have so far:

I looked at phantom.js and casper.js for some inspiration, but I'd be open to other suggestions on APIs that get this kind of thing 'right'

edit: currently you have to npm run bundle before this will work

24e1db6d66e00b90c99c68487e6b365c692b619cd3f2063b5a284b1182766b43

@mafintosh

This comment has been minimized.

mafintosh commented Jul 14, 2015

a scope.eval(script, cb) function would be a nice shorthand to have as well

@AutomatedTester

This comment has been minimized.

AutomatedTester commented Jul 14, 2015

What does this library have over something like WebDriver? WebDriver already has stable API that is now being standardised with a W3C Specification that is being implemented in Chrome, Firefox and Edge.

@maxogden

This comment has been minimized.

Owner

maxogden commented Jul 14, 2015

@AutomatedTester Browsing the docs for WebDriver it looks like if we wanted to implement that API it would take quite a bit of work, since all the calls would have to be done with RPC and we would likely have to make major contributions to Electron to let us implement the WebDriver APIs. There are some cool ideas in there though, thanks for sharing.

@AutomatedTester

This comment has been minimized.

AutomatedTester commented Jul 14, 2015

@maxogden You wouldn't have to do any implementations since there are already a number that do that.

Since I am guessing you only care about JavaScript ones see the following list from a npm search

While I am all for people scratching their own itch I do wonder if colloborating with the other projects would help you reach your end goal quicker.

@maxogden

This comment has been minimized.

Owner

maxogden commented Jul 14, 2015

@AutomatedTester the WebDriver API seems pretty overengineered for the types of things I'm interested in personally, but in the future I'll consider it

@maxogden maxogden closed this Feb 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment