mirror of
https://github.com/alexal1/Insomniac.git
synced 2026-04-26 18:15:54 +03:00
[GH-ISSUE #146] IGer with shop causes crash i suppose #575
Labels
No labels
bug
duplicate
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Insomniac#575
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)
If i can help in any way, let me know. Big Thanks and best regards,
fp
@cecimascaras commented on GitHub (Oct 20, 2020):
the same with me
@10000hzl commented on GitHub (Oct 21, 2020):
same here
@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
@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.
@GitNees commented on GitHub (Nov 12, 2020):
You can fix this by launching your script this way
python -Xutf8 start.py --your commands
@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
-Xutf8as 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.
@Fadude commented on GitHub (Nov 30, 2020):
Fixed on v3.4.0 - shop-profiles support added