InstaPy / InstaPy/instapy-quickstart

Coockies error

Open
#237 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
777
Forks
763
PR merge metrics
No merged PRs in 30d

Description

**My code (the original follow unfollow where i put the credentials and the users on wich start the following)**
`"""
This template is written by @cormo1990
What does this quickstart script aim to do?
- Basic follow/unfollow activity.
NOTES:
- I don't want to automate comment and too much likes because I want to do
this only for post that I really like the content so at the moment I only
use the function follow/unfollow.
- I use two files "quickstart", one for follow and one for unfollow.
- I noticed that the most important thing is that the account from where I
get followers has similar contents to mine in order to be sure that my
content could be appreciated. After the following step, I start unfollowing
the user that don't followed me back.
- At the end I clean my account unfollowing all the users followed with
InstaPy.
"""

# imports
from instapy import InstaPy
from instapy import smart_run

# login credentials
insta_username = ' '
insta_password = ' '

# get an InstaPy session!
# set headless_browser=True to run InstaPy in the background
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=False)

with smart_run(session):
""" Activity flow """
# general settings
session.set_relationship_bounds(enabled=True,
delimit_by_numbers=True,
max_followers=4590,
min_followers=45,
min_following=77)

session.set_dont_include(["friend1", "friend2", "friend3"])
session.set_dont_like(["pizza", "#store"])

# activities

""" Massive Follow of users followers (I suggest to follow not less than
3500/4000 users for better results)...
"""
session.follow_user_followers(['crystalhousemotel', 'mhahao_honghongg', '303organiccannabis'], amount=800,
randomize=False, interact=False)

""" First step of Unfollow action - Unfollow not follower users...
"""
session.unfollow_users(amount=500, InstapyFollowed=(True, "nonfollowers"),
style="FIFO",
unfollow_after=12 * 60 * 60, sleep_delay=601)

""" Second step of Massive Follow...
"""
session.follow_user_followers(['growyourmagic', 'mydecineig', 'mangutv'], amount=800,
randomize=False, interact=False)

""" Second step of Unfollow action - Unfollow not follower users...
"""
session.unfollow_users(amount=500, InstapyFollowed=(True, "nonfollowers"),
style="FIFO",
unfollow_after=12 * 60 * 60, sleep_delay=601)

""" Clean all followed user - Unfollow all users followed by InstaPy...
"""
session.unfollow_users(amount=500, InstapyFollowed=(True, "all"),
style="FIFO", unfollow_after=24 * 60 * 60,
sleep_delay=601)

""" Joining Engagement Pods...
"""
photo_comments = ['Nice shot! @{}',
'Awesome! @{}',
'Cool :thumbsup:',
'Just incredible :open_mouth:',
'What camera did you use @{}?',
'Love your posts @{}',
'Looks awesome @{}',
'Nice @{}',
':raised_hands: Yes!',
'I can feel your passion @{} :muscle:']

session.set_do_comment(enabled = True, percentage = 95)
session.set_comments(photo_comments, media = 'Photo')
session.join_pods(topic='food', engagement_mode='no_comments')`

**I'm getting this error**

`WARNING [2021-06-28 17:09:07] [mushroomello_tees] - Hide Selenium Extension: error
INFO [2021-06-28 17:09:13] [mushroomello_tees] - Cookie file not found, creating cookie...
INFO [2021-06-28 17:09:52] [mushroomello_tees] Timed out with failure while explicitly waiting until visibility of element located!

**********************************************************************
If raising an issue, please also upload the file located at:
/tmp/20210628-170957.html
**********************************************************************

INFO [2021-06-28 17:09:58] [mushroomello_tees] Sessional Live Report:
|> No any statistics to show

[Session lasted 1.02 minutes]
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2021-06-28 17:09:58] [mushroomello_tees] Session ended!
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
`

**In few words the bot is able to open firefox and land on the instagram page but it stops as soon as is shown the "accept cookie" on the IG page.
I need to stress that I'm by no means a programmer so the solution could be very easy but I couldn't find anything online that help me understand.
Just please tell me what i need to delete or paste and where.
Thank you**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.