diff options
author | Tudor Roman | 2019-10-08 19:48:26 +0300 |
---|---|---|
committer | Tudor Roman | 2019-10-08 19:48:26 +0300 |
commit | 0086ea330f3dc3b8aa4a9ca3345b0c49a4b91109 (patch) | |
tree | b307616568cc5a782c7304009ff06aa053d85b5a | |
parent | ba6c515cce83bf75081d4057b283d15ef524a3c8 (diff) | |
download | rmi_scripts-master.tar.gz rmi_scripts-master.zip |
-rwxr-xr-x | grab_flags | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -21,5 +21,7 @@ with open(sys.argv[1]) as file: reader = csv.DictReader(file, delimiter=',') for row in reader: country = row['id'][0:2].lower() + if country == 'vi': # vi for vianu + continue call(['wget', '-O', '{}.png'.format(row['id']), 'https://github.com/hjnilsson/country-flags/raw/master/png100px/{}.png'.format(country)]) print(row['id'][0:2]) |