Closed therealahall closed 5 years ago
I don't recommend headless
Any reason why not?
it is detectable,
How is it any more detectable than running it on my local machine that pops up the GUI version of chrome?
Cool, I’ll see if the same is available for Firefox. I have more experience running headless Firefox than I do chrome. I just went that route because it was officially listed in the documentation for the repo
I have this same issue
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this problem still occurs, please open a new issue
Expected Behavior
Script performs as it does on Mac OS
Current Behavior
Both following and unfollowing appear to not be working in a headless environment.
INFO [2018-05-12 23:19:11] [my_user] Session started - 2018-05-12 23:19:11 INFO [2018-05-12 23:19:40] [my_user] Logged in successfully! ERROR [2018-05-12 23:20:06] [my_user] Could not determine if [their_user] has followers INFO [2018-05-12 23:20:06] [my_user] --> Total people followed : 0 INFO [2018-05-12 23:20:06] [my_user] Starting to follow likers.. INFO [2018-05-12 23:20:09] [my_user] Finished following likers!
Note that the liking of photos by tag is working in this configuration
Possible Solution (optional)
Server setup
Ubuntu 16.04.4 LTS Python 2.7.12 Followed the instructions here: https://github.com/timgrossmann/InstaPy/blob/master/docs/How_To_DO_Ubuntu_on_Digital_Ocean.md
Same configuration works on MacOS by turning headless_browser=False and removing the nogui line
InstaPy configuration
session = InstaPy(username=insta_username, password=insta_password, headless_browser=True, nogui=True, multi_logs=True)
def my_shuffle(array): random.shuffle(array) return array
try: session.login()