From b8fedbb512e18b4a2155f9cecd3e769d92bdf325 Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Fri, 19 Jul 2019 18:41:49 +0200 Subject: [PATCH] file mancante --- core/scrapertoolsV2.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/scrapertoolsV2.py b/core/scrapertoolsV2.py index 9fa26d28..a8e5b163 100644 --- a/core/scrapertoolsV2.py +++ b/core/scrapertoolsV2.py @@ -32,6 +32,11 @@ def find_multiple_matches(text, pattern): return re.findall(pattern, text, re.DOTALL) +def find_multiple_matches_groups(text, pattern): + r = re.compile(pattern) + return [m.groupdict() for m in r.finditer(text)] + + # Convierte los codigos html "ñ" y lo reemplaza por "ñ" caracter unicode utf-8 def decodeHtmlentities(data): entity_re = re.compile("&(#?)(\d{1,5}|\w{1,8})(;?)")