-
-
Save BernardOng/52d8dc7e4bdcbe0bc891c57aeec0b723 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AMZ_ROOT = 'https://www.amazon.com/' | |
def __init__(self, query): | |
# Preprocess Search Query | |
exclude = set(string.punctuation) | |
self.query = ''.join(ch for ch in query if ch not in exclude) | |
# Get maximum page to retrieve | |
self.maximum = self.maxPage() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment