Private GIT

Skip to content
Snippets Groups Projects
Commit c4e6dea1 authored by Clement ZOTTI's avatar Clement ZOTTI Committed by miigotu
Browse files

Iterate on each row of the table.

parent 8b119923
Branches
No related tags found
No related merge requests found
......@@ -80,7 +80,12 @@ class Torrent9Provider(TorrentProvider):
continue
with BS4Parser(data, 'html5lib') as html:
torrent_rows = html.find('div', {'class': 'table-responsive'})
torrent_table = html.find('div', {'class': 'table-responsive'})
if torrent_table is not None:
torrent_rows = torrent_table.findAll('tr')
else:
torrent_rows = None
if not torrent_rows:
continue
for result in torrent_rows:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment