yaske: fix paginacion

This commit is contained in:
Intel1
2017-12-16 08:22:05 -05:00
committed by GitHub
parent b3c345fd11
commit 3aabe7eb75

View File

@@ -105,7 +105,7 @@ def peliculas(item):
patron += 'post(.*?)</div.*?'
patron += 'text-muted f-14">(.*?)</h3'
matches = scrapertools.find_multiple_matches(data, patron)
patron_next_page = 'href="([^"]+)"> &raquo;'
patron_next_page = 'href="([^"]+)">\s*&raquo;'
matches_next_page = scrapertools.find_single_match(data, patron_next_page)
if len(matches_next_page) > 0:
url_next_page = item.url + matches_next_page