Skip to content

Instantly share code, notes, and snippets.

@BernardOng
Created August 22, 2016 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BernardOng/52d8dc7e4bdcbe0bc891c57aeec0b723 to your computer and use it in GitHub Desktop.
Save BernardOng/52d8dc7e4bdcbe0bc891c57aeec0b723 to your computer and use it in GitHub Desktop.
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