This commit is contained in:
Alhaziel
2019-08-08 20:10:53 +02:00
7 changed files with 28 additions and 61 deletions
+2 -2
View File
@@ -166,7 +166,7 @@ def scrapeLang(scraped, lang, longtitle):
def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, typeContentDict, typeActionDict, blacklist, search, pag, function):
itemlist = []
log("scrapeBlock qui", block, patron)
matches = scrapertoolsV2.find_multiple_matches_groups(block, patron)
log('MATCHES =', matches)
@@ -337,7 +337,7 @@ def scrape(func):
log('DATA =', data)
if patronBlock:
blocks = scrapertoolsV2.find_multiple_matches_groups(data, patronBlock)
blocks = scrapertoolsV2.find_multiple_matches_groups(data, patronBlock)
block = ""
for bl in blocks:
blockItemlist, blockMatches = scrapeBlock(item, args, bl['block'], patron, headers, action, pagination, debug,