Navigation Menu

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

API feedback #1

Closed
max-mapper opened this issue Jul 14, 2015 · 5 comments
Closed

API feedback #1

max-mapper opened this issue Jul 14, 2015 · 5 comments

Comments

@max-mapper
Copy link
Owner

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
Copy link

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

@AutomatedTester
Copy link

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.

@max-mapper
Copy link
Owner Author

@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
Copy link

@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.

@max-mapper
Copy link
Owner Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants