diff options
Diffstat (limited to 'download_files.py')
-rw-r--r-- | download_files.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/download_files.py b/download_files.py index ba99305..5fe6d29 100644 --- a/download_files.py +++ b/download_files.py @@ -114,4 +114,12 @@ def unzip_file(filename, temp_file): def delete_archive(file): send2trash.send2trash(file) + return 0 + +def download_criminal_records(): + source = "https://eservice-po.rejtr.justice.cz/public/odsouzeni_xml" + file_address = os.path.join(str(os.getcwd()), "data", "criminal_records.xml") + downloaded_criminal_extracts = downloadOR(source) + if downloaded_criminal_extracts != None: + save_temp_file(downloaded_criminal_extracts, file_address) return 0
\ No newline at end of file |