summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-06-21 15:40:33 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-06-21 23:51:50 +0200
commit6b15decd0acc2c7c0622baba65b9d4c019a4183a (patch)
treebfb8aac5a672a1c83ad1f25cc66a2e08c71761f9 /bin
parentcbe00c2eea06bc59c4bf3b36fbb5f2d1d2d87ef4 (diff)
crashreportScraper: encode the url
Change-Id: I1f738f017966a6fe48dd9e2cf36dbdf5f50c0cef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136229 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/crashreportScraper.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/crashreportScraper.py b/bin/crashreportScraper.py
index 513f5ec7b75d..cad7feead645 100755
--- a/bin/crashreportScraper.py
+++ b/bin/crashreportScraper.py
@@ -17,6 +17,7 @@ import sys
import os
import math
from datetime import datetime
+import urllib.parse
def convert_str_to_date(value):
value = value.replace('.', '')
@@ -194,11 +195,11 @@ if __name__ == '__main__':
f.flush()
for k, lDate in crashes.items():
- if len(k) < 254 and k not in crashesInFile and '`' not in k:
+ if k not in crashesInFile:
print("Parsing " + k)
try:
crashCount, crashID, crashVersion, crashOS = parse_reports_and_get_most_recent_report_from_last_page(
- "https://crashreport.libreoffice.org/stats/signature/" + k)
+ "https://crashreport.libreoffice.org/stats/signature/" + urllib.parse.quote(k))
crashReason, crashStack, codeLine = parse_details_and_get_info(
"https://crashreport.libreoffice.org/stats/crash_details/" + crashID, args.repository)
line = '\t'.join([k, str(crashCount), lDate[1], lDate[2],