InstaPy / instapy-quickstart

💨 Simply get InstaPy up and running in minutes.
GNU General Public License v3.0
765 stars 796 forks source link

Coockies error #237

Open Bostonsam10 opened 3 years ago

Bostonsam10 commented 3 years ago

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?

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

fintzd commented 3 years ago

Hey @Bostonsam10 !

You just need to install the new version of Instapy and it should work properly. Alternativey, have you tried this alteration of the code? mentioned in issue#5834? This also seems to have worked for some people!

Cheers!

Bostonsam10 commented 3 years ago

Tank you

Il Gio 1 Lug 2021, 14:29 fintzd @.***> ha scritto:

Hey @Bostonsam10 https://github.com/Bostonsam10 !

You just need to install the new version of Instapy and it should work properly. Alternativey, have you tried this alteration of the code? mentioned in issue#5834 https://github.com/timgrossmann/InstaPy/issues/5834? This also seems to have worked for some people!

Cheers!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/InstaPy/instapy-quickstart/issues/237#issuecomment-872205353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQERSX5WIWGQ67V2RP6OXA3TVRNSFANCNFSM47OGUTQA .

fintzd commented 3 years ago

Hey @Bostonsam10 !

Did you manage to check it out? (the issue#5834 I mean) Did that solve the issue for you?

Cheers!

Bostonsam10 commented 3 years ago

No in realty i dont know how to code so dont wknow where exactly should i put the code you advised me ( i already found that solution before looking on the internet) I think i have the lastest instapy because i have just installed it. What i do is launching the program in grafical mode and click on accept cookies and login than the program run....

Il Gio 1 Lug 2021, 14:59 fintzd @.***> ha scritto:

Hey @Bostonsam10 https://github.com/Bostonsam10 !

Did you manage to check it out? (the issue#5834 https://github.com/timgrossmann/InstaPy/issues/5834 I mean) Did that solve the issue for you?

Cheers!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/InstaPy/instapy-quickstart/issues/237#issuecomment-872224874, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQERSXYMXVI6RCOZWZZ6AVLTVRRCHANCNFSM47OGUTQA .

fintzd commented 3 years ago

I understand! Well yes in that case that would possibly be a solution that could work. Depending on how much time you want to spend on the coding part, there are quite a few good tutorials and explanations that could help you figure out what to do in order to avoid that issue.

In case you want to take a look, I'd suggest:

Good luck with it, and sorry that I could not properly help you out with this in that case!

Cheers!

Bostonsam10 commented 3 years ago

Thanks for the tip!

Il Gio 1 Lug 2021, 15:13 fintzd @.***> ha scritto:

I understand! Well yes in that case that would possibly be a solution that could work. Depending on how much time you want to spend on the coding part, there are quite a few good tutorials and explanations that could help you figure out what to do in order to avoid that issue.

In case you want to take a look, I'd suggest:

Good luck with it, and sorry that I could not properly help you out with this in that case!

Cheers!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/InstaPy/instapy-quickstart/issues/237#issuecomment-872236959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQERSX7G4IUXEZ32O3OTX6DTVRSY5ANCNFSM47OGUTQA .