Skip to content

Instantly share code, notes, and snippets.

@dev4Fun
Last active September 10, 2020 03:28
Show Gist options
  • Save dev4Fun/2a932c1cea1d5d30094c2de8c4df6087 to your computer and use it in GitHub Desktop.
Save dev4Fun/2a932c1cea1d5d30094c2de8c4df6087 to your computer and use it in GitHub Desktop.
def __enter__(self):
if not config.SKIP_LOGIN:
self.log_in()
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self.driver.quit()
logger.info(post_tracker.stats)
return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment