From a3fa73495141fc240ea0ad9b54d7a2882264db20 Mon Sep 17 00:00:00 2001 From: mattlyon93 Date: Sun, 3 Nov 2019 12:29:00 +1100 Subject: improvements to TPB controller and Query --- tpblite/models/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tpblite/models/utils.py') 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()) -- cgit v1.2.3