diff --git a/convert.py b/convert.py index 9d26b28..51a2e47 100644 --- a/convert.py +++ b/convert.py @@ -23,8 +23,8 @@ def convert_to_markdown(file): re_clicks = r"(.*)\s+Clicks \(web\)" re_impressions = r"(.*)\s+Impressions \(web\)" re_url_stats = r"(?P^http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+$)\n+(?P(?:\+?[\w\.]+))" - re_growing_queries = r"(?P.*)\n+(?P\+?[\d\.]+) clicks \((?P\w+)\)" - re_top_queries = r"(?P.{6,})\n{2}(?P\d+$)" + re_growing_queries = r"(?P.*)\n+(?P\+?[\d\.]+K?) clicks \((?P\w+)\)" + re_top_queries = r"(?P.{6,})\n{2}(?P\d+K?$)" re_devices = r"Desktop Mobile Tablet\s+^(?P(?:\d|\.)+[A-Z]?) (?P(?:\d|\.)+[A-Z]?) (?P(?:\d|\.)+[A-Z]?)$" # Skip the first two matches