MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / take_rotative_screenshot

Function take_rotative_screenshot

instapy/util.py:2534–2550  ·  view source on GitHub ↗

Make a sequence of screenshots, based on hour:min:secs

(browser, logfolder)

Source from the content-addressed store, hash-verified

2532
2533
2534def take_rotative_screenshot(browser, logfolder):
2535 """
2536 Make a sequence of screenshots, based on hour:min:secs
2537 """
2538 global next_screenshot
2539
2540 if next_screenshot == 1:
2541 browser.save_screenshot("{}screenshot_1.png".format(logfolder))
2542 elif next_screenshot == 2:
2543 browser.save_screenshot("{}screenshot_2.png".format(logfolder))
2544 else:
2545 browser.save_screenshot("{}screenshot_3.png".format(logfolder))
2546 next_screenshot = 0
2547 # sum +1 next
2548
2549 # update next
2550 next_screenshot += 1
2551
2552
2553def get_query_hash(browser, logger, edge_followed_by):

Callers 1

update_activityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected