aboutsummaryrefslogtreecommitdiffstats
path: root/tpblite/models/torrents.py
diff options
context:
space:
mode:
Diffstat (limited to 'tpblite/models/torrents.py')
-rw-r--r--tpblite/models/torrents.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tpblite/models/torrents.py b/tpblite/models/torrents.py
index 9fd40c4..7852c28 100644
--- a/tpblite/models/torrents.py
+++ b/tpblite/models/torrents.py
@@ -63,8 +63,8 @@ class Torrents(object):
torrent list or dict. Has methods to select items from
torrent list.
'''
- def __init__(self, webpage):
- self.webpage = webpage
+ def __init__(self, html_source):
+ self.html_source = html_source
self.list = self._createTorrentList()
def __str__(self):
@@ -74,7 +74,7 @@ class Torrents(object):
return iter(self.list)
def _createTorrentList(self):
- soup = BeautifulSoup(self.webpage, features='html.parser')
+ soup = BeautifulSoup(self.html_source, features='html.parser')
rows = self.__getRows(soup)
torrents = []
for row in rows: