I’m Running OSX. Thought I could find documentation somewhere, but could not.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use a MongoDB REST client:
Sleepy.Mangoose: It’s the best IMO
MongoDB REST: It looks promising, but is not complete yet and has some weird bugs (for example, it refused to send large requests (more than 80,000 characters) and it took me 3 hours to find what was wrong with it)
MongoDB Java REST server
You can connect directly to the rest server from you injected javascript (use jQuery’s
ajaxmethod or simply usexmlhttprequest), but I think it’s better to do it inside PhantomJS’sevaluatemethod (because if the page you’re parsing has javascript errors, your the injected javascript might not work properly).But I personally don’t like the idea of a REST server for PhantomJS. I think It’s better to write your whole application in NodeJS and use
phantomjsmodule to run PhantomJS. This way, you don’t have to go the REST way and can use the (now official) MongoDB Native Node Driver, which is potentially many times faster than the REST servers (because it doesn’t require JSON HTTP serialization/deserialization, among other things).