I've been in the process of making an instagram bot for a few days now and I'm having trouble logging into instagram with a headless selenium browser.
The script I made works perfectly fine when run on my laptop but when I try to run this on my digital ocean server, the browser will fill the login forms, then submit the form but nothing happens. I was able to print any console errors with this code:
for entry in self.browser.get_log('browser'):
print(str(entry))
and this error comes up
{u'source': u'network', u'message': u'https://www.instagram.com/accounts/login/ajax/ - Failed to load resource: the server responded with a status of 400 ()', u'timestamp': 1546536937734, u'level': u'SEVERE'}
I am using the chromedriver for selenium and python2.7
I'm not completely sure why this is happening. Thanks for any help!