Skip to content

Conversation

GraphtyLove
Copy link

Summary

Add a parameter check_catchall to find_valid_emails and find_valid_emails_bulk.

Introduction

By default, if you don't want to do an email catchall check for each request, you have to set it at the class level:

But if you are scanning a multiple domains, you may want to be able to do that on a function level to avoid creating multiple scout objects.

How it would be used

You can specify a general behaviour and a function behaviour.

scout = Scout(check_catchall = False)

emails_manager = scout.find_valid_emails(check_catchall=True)
emails_employees = scout.find_valid_emails(check_catchall=False)

Cases

scout = Scout(check_catchall=False)

scout.find_valid_emails(check_catchall=True) # Look for catchall
scout.find_valid_emails(check_catchall=False) # Don't look for catchall
scout.find_valid_emails() # Don't look for catchall


scout2 = Scout(check_catchall=True)

scout2.find_valid_emails(check_catchall=True) # Look for catchall
scout2.find_valid_emails(check_catchall=False) # Don't look for catchall
scout2.find_valid_emails() # Look for catchall

Same idea for find_valid_emails_bulk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant