AxelMonroyX / botLikes

A couple of bots to "like" in some social sites like Instagram and Facebook
Apache License 2.0
6 stars 0 forks source link

INSTAGRAM FEED LIKE #2

Open Oyetomi opened 8 years ago

Oyetomi commented 8 years ago

Please how can i run this in phantomJs

AxelMonroyX commented 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;
Oyetomi commented 8 years ago

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 .

Hamedmilanii commented 7 years ago

hi. the feed like Instagram is not working please solve this problem