Fix piratebay search
Not sure if it is the best way to remove first element of an operator...
This commit is contained in:
parent
5d82484c48
commit
7c1df88815
1 changed files with 4 additions and 0 deletions
|
|
@ -38,7 +38,11 @@ class TorrentsPage(BasePage):
|
|||
|
||||
def iter_torrents(self):
|
||||
table = self.parser.select(self.document.getroot(), 'table#searchResult', 1)
|
||||
first = True
|
||||
for tr in table.getiterator('tr'):
|
||||
if first:
|
||||
first = False
|
||||
continue
|
||||
if tr.get('class', '') != "header":
|
||||
td = tr.getchildren()[1]
|
||||
div = td.getchildren()[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue