Code Improvements and Addition of New Features #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes Documentation
1. Signal Handling Addition
2.
clean_html_tags
Method inmyparser
ClassgenericClean
method was replaced by theclean_html_tags
method in themyparser
class. This was done to make the naming more descriptive and cohesive with the method's responsibility.3.
clean_special_characters
Method inmyparser
Classclean_special_characters
was added to themyparser
class. It is responsible for cleaning special characters from the results string, replacing them with whitespace.4. Regex Change in
emails
Method ofmyparser
Classemails
method was modified to use "raw" strings (prefixed withr
) to improve readability and avoid issues with backslashes in escape characters.5. Exception Handling Addition in
__init__
Method ofEmailHarvester
Class6. Redundant Exception Handling Removal
try-except
block around the call tor.raise_for_status()
in thedo_search
method of theEmailHarvester
class was removed, asrequests.get
already raises arequests.exceptions.HTTPError
exception if the response has an error status.