Closed balazsnemeth closed 5 years ago
I probably need to fork your repo and update the HTML elem identifiers.
Like this issue is gone if I change line 464 in instaauto/index.js to
await page.click('a[href="/accounts/login/?source=auth_switcher"]');
from
await page.click('a[href="/accounts/login/]');
But now there are new errors:
TypeError: Cannot read property 'click' of undefined
at module.exports (/Users/nbalazs/Work/projects/digitalNomad/instafollow/node_modules/instauto/index.js:471:23)
at process._tickCallback (internal/process/next_tick.js:68:7)
Thanks for reporting! I have now fixed this in the latest version. Currently it seems that the first time we log in there is an error about "Suspicious login activity". This needs to be handled manually with "headless = false". When this is solved, the cookie will be stored in cookies.json and the error should not appear again.
(Mac Osx Mojave) Installed the dependencies, added the example.js based on your example, filled out my users, however when I tried to execute I got this error: