diff options
Diffstat (limited to 'tpblite/models/utils.py')
-rw-r--r-- | tpblite/models/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tpblite/models/utils.py b/tpblite/models/utils.py index 977672b..200982f 100644 --- a/tpblite/models/utils.py +++ b/tpblite/models/utils.py @@ -10,9 +10,10 @@ class Query(object): ''' def __init__(self, query, base_url, page, order, category): self.base_url = base_url + print('category is {} {}'.format(category,str(category))) segments = ('search', query, str(page), str(order), str(category)) self.url = URL(base_url, segments) - self.webpage = self._sendRequest() + self.html_source = self._sendRequest() def _sendRequest(self): req = Request(self.url, headers=headers()) |