InstaPy / InstaPy/instapy-quickstart

Coockies error

Đang mở
#237 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Python
Star
777
Fork
763
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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**

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với quickstart script được cung cấp và Selenium timeout đã được ghi nhận xung quanh lời nhắc cookie của Instagram. Kiểm tra /tmp/20210628-170957.html và tái hiện phiên Firefox; hoàn tất khi bước cookie hoàn thành và phiên tiếp tục mà không gặp visibility timeout.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.