@@ -0,0 +1,949 @@
+import json%0Aimport csv%0Aimport requests%0A%0AURL = %22https://www.cnb.cz/cs/platebni-styk/.galleries/ucty_kody_bank/download/kody_bank_CR.csv%22%0A%0A%0Aregistry = %5B%5D%0A%0A%0Adef process():%0A    with requests.get(URL, stream=True) as csvfile:%0A        count = 0%0A        for row in csvfile.iter_lines():%0A            if count != 0:%0A                bank_code, name, bic = row.decode(%22latin1%22).split(%22;%22)%5B0:3%5D%0A                registry.append(%0A                    %7B%0A                        %22country_code%22: %22CZ%22,%0A                        %22primary%22: True,%0A                        %22bic%22: bic.upper(),%0A                        %22bank_code%22: bank_code,%0A                        %22name%22: name,%0A                        %22short_name%22: name,%0A                    %7D%0A                )%0A            else:%0A                count = 1%0A        return registry%0A%0A%0Aif __name__ == %22__main__%22:%0A    with open(%22schwifty/bank_registry/generated_cz.json%22, %22w%22) as fp:%0A        json.dump(process(), fp, indent=2)%0A

Add script to generate CZ bank bic codes registry