[GH-ISSUE #146] IGer with shop causes crash i suppose #575

Closed
opened 2026-03-13 21:59:50 +03:00 by kerem · 7 comments
Owner

Originally created by @fp231 on GitHub (Oct 19, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/146

Hi Guys,

first of all: what a great project. I experimented with a lot of bots and this one is just great, because it's real.

But i stumbled on an issue: The bot crashes when an account has got a shop. Cannot find Follow Botton, i suppose because of the Shop Button on top of it. I would love to help, but my python isnt good enough. So here is the error promt:

Cannot find neither Follow button, nor Unfollow button. Maybe not English language is set?
Traceback (most recent call last):
File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 397, in wrapper
func(*args, **kwargs)
File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 203, in job
on_interaction)
File "/home/pi/Desktop/instabot/handybot/Insomniac/src/action_handle_blogger.py", line 43, in handle_blogger
_iterate_over_followers(device, interaction, is_follow_limit_reached, storage, on_interaction, is_myself)
File "/home/pi/Desktop/instabot/handybot/Insomniac/src/action_handle_blogger.py", line 143, in _iterate_over_followers
interaction_succeed, followed = interaction(device, username=username, can_follow=can_follow)
File "/home/pi/Desktop/instabot/handybot/Insomniac/src/action_handle_blogger.py", line 264, in _interact_with_user
return True, _follow(device, username, follow_percentage)
File "/home/pi/Desktop/instabot/handybot/Insomniac/src/action_handle_blogger.py", line 346, in _follow
save_crash(device)
File "/home/pi/Desktop/instabot/handybot/Insomniac/src/utils.py", line 102, in save_crash
device.dump_hierarchy("crashes/" + directory_name + "/view_hierarchy" + view_hierarchy_format)
File "/home/pi/Desktop/instabot/handybot/Insomniac/src/device_facade.py", line 76, in dump_hierarchy
outfile.write(xml_dump)
UnicodeEncodeError: 'latin-1' codec can't encode character '\u0308' in position 11605: ordinal not in range(256)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 439, in
main()
File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 109, in main
on_interaction)
File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 207, in _job_handle_bloggers
job()
File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 420, in wrapper
save_crash(device)
File "/home/pi/Desktop/instabot/handybot/Insomniac/src/utils.py", line 102, in save_crash
device.dump_hierarchy("crashes/" + directory_name + "/view_hierarchy" + view_hierarchy_format)
File "/home/pi/Desktop/instabot/handybot/Insomniac/src/device_facade.py", line 76, in dump_hierarchy
outfile.write(xml_dump)
UnicodeEncodeError: 'latin-1' codec can't encode character '\u0308' in position 11605: ordinal not in range(256)

screenshot

If i can help in any way, let me know. Big Thanks and best regards,
fp

Originally created by @fp231 on GitHub (Oct 19, 2020). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/146 Hi Guys, first of all: what a great project. I experimented with a lot of bots and this one is just great, because it's real. But i stumbled on an issue: The bot crashes when an account has got a shop. Cannot find Follow Botton, i suppose because of the Shop Button on top of it. I would love to help, but my python isnt good enough. So here is the error promt: Cannot find neither Follow button, nor Unfollow button. Maybe not English language is set? Traceback (most recent call last): File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 397, in wrapper func(*args, **kwargs) File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 203, in job on_interaction) File "/home/pi/Desktop/instabot/handybot/Insomniac/src/action_handle_blogger.py", line 43, in handle_blogger _iterate_over_followers(device, interaction, is_follow_limit_reached, storage, on_interaction, is_myself) File "/home/pi/Desktop/instabot/handybot/Insomniac/src/action_handle_blogger.py", line 143, in _iterate_over_followers interaction_succeed, followed = interaction(device, username=username, can_follow=can_follow) File "/home/pi/Desktop/instabot/handybot/Insomniac/src/action_handle_blogger.py", line 264, in _interact_with_user return True, _follow(device, username, follow_percentage) File "/home/pi/Desktop/instabot/handybot/Insomniac/src/action_handle_blogger.py", line 346, in _follow save_crash(device) File "/home/pi/Desktop/instabot/handybot/Insomniac/src/utils.py", line 102, in save_crash device.dump_hierarchy("crashes/" + directory_name + "/view_hierarchy" + view_hierarchy_format) File "/home/pi/Desktop/instabot/handybot/Insomniac/src/device_facade.py", line 76, in dump_hierarchy outfile.write(xml_dump) UnicodeEncodeError: 'latin-1' codec can't encode character '\u0308' in position 11605: ordinal not in range(256) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 439, in <module> main() File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 109, in main on_interaction) File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 207, in _job_handle_bloggers job() File "/home/pi/Desktop/instabot/handybot/Insomniac/insomniac.py", line 420, in wrapper save_crash(device) File "/home/pi/Desktop/instabot/handybot/Insomniac/src/utils.py", line 102, in save_crash device.dump_hierarchy("crashes/" + directory_name + "/view_hierarchy" + view_hierarchy_format) File "/home/pi/Desktop/instabot/handybot/Insomniac/src/device_facade.py", line 76, in dump_hierarchy outfile.write(xml_dump) UnicodeEncodeError: 'latin-1' codec can't encode character '\u0308' in position 11605: ordinal not in range(256) ![screenshot](https://user-images.githubusercontent.com/69848354/96485279-d7099800-123c-11eb-92b5-dc3380df360d.jpg) If i can help in any way, let me know. Big Thanks and best regards, fp
kerem 2026-03-13 21:59:50 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@cecimascaras commented on GitHub (Oct 20, 2020):

the same with me

<!-- gh-comment-id:712543750 --> @cecimascaras commented on GitHub (Oct 20, 2020): the same with me
Author
Owner

@10000hzl commented on GitHub (Oct 21, 2020):

same here

<!-- gh-comment-id:713665216 --> @10000hzl commented on GitHub (Oct 21, 2020): same here
Author
Owner

@soulpawa commented on GitHub (Oct 23, 2020):

yes, me too, I notice that in one device, so I guess it's not able to find the button follow and crashes, however I solved more or less the issue skipping business accounts

<!-- gh-comment-id:715472302 --> @soulpawa commented on GitHub (Oct 23, 2020): yes, me too, I notice that in one device, so I guess it's not able to find the button follow and crashes, however I solved more or less the issue skipping business accounts
Author
Owner

@toscan commented on GitHub (Nov 11, 2020):

Hey guy, did you find a solution ? On my side, skipping business account did not solve the issue, sometime the bot goes in the account anyway.

<!-- gh-comment-id:725270129 --> @toscan commented on GitHub (Nov 11, 2020): Hey guy, did you find a solution ? On my side, skipping business account did not solve the issue, sometime the bot goes in the account anyway.
Author
Owner

@GitNees commented on GitHub (Nov 12, 2020):

You can fix this by launching your script this way

python -Xutf8 start.py --your commands

<!-- gh-comment-id:725797357 --> @GitNees commented on GitHub (Nov 12, 2020): You can fix this by launching your script this way python -Xutf8 start.py --your commands
Author
Owner

@adchsm commented on GitHub (Nov 17, 2020):

I can confirm I'm also receiving this error, which causes an endless loop of error -> settings -> back to user - > error -> settings -> etc etc.

Running the command above with -Xutf8 as GitNees suggested didn't fix it for me.

EDIT: If you're a paid Patreon user, skipping business profiles works, but ultimately I would still like to target business profiles.

EDIT 2: It seems some accounts with shops are still being targeted when skipping business profiles when interacting and when scraping.

<!-- gh-comment-id:729005235 --> @adchsm commented on GitHub (Nov 17, 2020): I can confirm I'm also receiving this error, which causes an endless loop of error -> settings -> back to user - > error -> settings -> etc etc. Running the command above with `-Xutf8` as GitNees suggested didn't fix it for me. **EDIT:** If you're a paid Patreon user, skipping business profiles works, but ultimately I would still like to target business profiles. **EDIT 2:** It seems some accounts with shops are still being targeted when skipping business profiles when interacting and when scraping.
Author
Owner

@Fadude commented on GitHub (Nov 30, 2020):

Fixed on v3.4.0 - shop-profiles support added

<!-- gh-comment-id:735607249 --> @Fadude commented on GitHub (Nov 30, 2020): Fixed on v3.4.0 - shop-profiles support added
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#575
No description provided.