Open Oyetomi opened 8 years ago
I never used phantomJS, but as you can see in their documentation DOM manipulation you can call DOM objects, greetings!
page.open('http://www.httpuseragent.org', function(status) {
if (status !== 'success') {
console.log('Unable to access network');
} else {
var ua = page.evaluate(function() {
return document.getElementById('myagent').textContent;
});
console.log(ua);
}
phantom.exit();
});
return document.getElementById('myagent').textContent;
Am a noob, I just need a bot I can run in Phantom js to like my instagram feeds, Can you help On Sep 20, 2016 10:23 PM, "Axel Monroy" notifications@github.com wrote:
I never used phantomJS, but as you can see in their documentation DOM manipulation http://phantomjs.org/page-automation.html you can call DOM objects, greetings!
page.open('http://www.httpuseragent.org', function(status) { if (status !== 'success') { console.log('Unable to access network'); } else { var ua = page.evaluate(function() { return document.getElementById('myagent').textContent; }); console.log(ua); } phantom.exit(); });
return document.getElementById('myagent').textContent;
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AxelMonroyX/botLikes/issues/2#issuecomment-248438797, or mute the thread https://github.com/notifications/unsubscribe-auth/AUPGkuFg3YttvePrejGEB2ySqEiF1oIMks5qsE7JgaJpZM4KCHVB .
hi. the feed like Instagram is not working please solve this problem
Please how can i run this in phantomJs