arreglo patron género
This commit is contained in:
sculkurt
2018-10-29 16:55:45 +01:00
committed by GitHub
parent 1bc8ad1267
commit cf4d838a9e

View File

@@ -30,7 +30,7 @@ def genero(item):
itemlist = list()
data = httptools.downloadpage(host).data
data = re.sub(r"\n|\r|\t|\s{2}| ", "", data)
patron = '<li class="cat-item.*?<a href="([^"]+)">([^<]+)</a>'
patron = '<li class="cat-item.*?<a href="([^"]+)".*?>([^<]+)</a>'
matches = scrapertools.find_multiple_matches(data, patron)
for scrapedurl, scrapedtitle in matches: