Closed bugre closed 5 years ago
Found out that the error also occurs on year change, so i've to refactor the code some more, as my first solution doesn't work correctly for all (known) situation.
Should have a working solution latter today, i expect :)
I'm playing with InstaPy trying to understand IG user behavior. But for now, i was only tracking my followers and unfollowers on a daily basis (sometimes two or tree times, if i saw some bigger relation change.
I started around mid January, and on February, 1st the docker_quickstart.py that i was using started to crash on the "session.pick_unfollowers(...)" call.
My call is:
all_unfollowers, active_unfollowers = bot.pick_unfollowers(username="ig_id", compare_by="earliest", compare_track="first", live_match=True, store_locally=True, print_out=True)
I've checked if no corrupted json or something strange was present in the "~/InstaPy/logs//relationship_data//followers" , and found nothing wrong with the data present there.
If you can create and assign the issue to me, i'll provide a suggested solution as soon i've it tested.
Expected Behavior
Collect and store follower/unfollower information.
Current Behavior
Crashing to collect unfollower users after month changed from January to February. Crash occurs at: https://github.com/timgrossmann/InstaPy/blob/0c8a86057aa2959af47a38bca4f1c25edf92a1cd/instapy/relationship_tools.py#L1088
Possible Solution (optional)
I think i already found the problem ( as it crashes trying to "check" for a dictionary entry of the new month before setting it), and i'm currently testing a solution. I can provide a PR with it as soon i've done some more testing.
InstaPy configuration
Currently running the docker version, but problem is reproducible, with a very simple setup.
To reproduce the problem:
Then create a docker_quickstart.py with:
*Crash traceback