MCPcopy
hub / github.com/InstaPy/InstaPy / log_uncertain_unfollowed_pool

Function log_uncertain_unfollowed_pool

instapy/print_log_writer.py:62–72  ·  view source on GitHub ↗

Prints and logs the uncertain unfollowed to a separate file

(login, person, logger, logfolder, logtime, user_id)

Source from the content-addressed store, hash-verified

60
61
62def log_uncertain_unfollowed_pool(login, person, logger, logfolder, logtime, user_id):
63 """Prints and logs the uncertain unfollowed to
64 a separate file"""
65 try:
66 with open(
67 "{0}{1}_uncertain_unfollowedPool.csv".format(logfolder, login), "a+"
68 ) as followPool:
69 with interruption_handler():
70 followPool.write("{} ~ {} ~ {},\n".format(logtime, person, user_id))
71 except BaseException as e:
72 logger.error("log_uncertain_unfollowed_pool error {}".format(str(e)))
73
74
75def log_record_all_unfollowed(login, unfollowed, logger, logfolder):

Callers 1

post_unfollow_cleanupFunction · 0.85

Calls 1

interruption_handlerFunction · 0.85

Tested by

no test coverage detected