Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check_catchall to functions #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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