🏡 index : github.com/captn3m0/gsur-eml-to-markdown.git

author Nemo <me@captnemo.in> 2024-03-05 16:10:17.0 +05:30:00
committer Nemo <me@captnemo.in> 2024-03-05 16:10:17.0 +05:30:00
commit
bc7ab8723347c70aba8a1d706a12da14ce18c893 [patch]
tree
641c23817b66b72307b5f1835c2d64ce996f0d3d
parent
5a4dad578f8bc75b166cd06a9eaadf2a2a73e9d8
download
bc7ab8723347c70aba8a1d706a12da14ce18c893.tar.gz

numbers get suffixed with K



Diff

 convert.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/convert.py b/convert.py
index 9d26b28..51a2e47 100644
--- a/convert.py
+++ a/convert.py
@@ -23,8 +23,8 @@
		re_clicks = r"(.*)\s+Clicks \(web\)"
		re_impressions = r"(.*)\s+Impressions \(web\)"
		re_url_stats = r"(?P<url>^http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+$)\n+(?P<num>(?:\+?[\w\.]+))"
		re_growing_queries = r"(?P<query>.*)\n+(?P<num>\+?[\d\.]+) clicks \((?P<device>\w+)\)"
		re_top_queries = r"(?P<query>.{6,})\n{2}(?P<num>\d+$)"
		re_growing_queries = r"(?P<query>.*)\n+(?P<num>\+?[\d\.]+K?) clicks \((?P<device>\w+)\)"
		re_top_queries = r"(?P<query>.{6,})\n{2}(?P<num>\d+K?$)"
		re_devices = r"Desktop Mobile Tablet\s+^(?P<desktop>(?:\d|\.)+[A-Z]?) (?P<mobile>(?:\d|\.)+[A-Z]?) (?P<tablet>(?:\d|\.)+[A-Z]?)$"

		# Skip the first two matches