Skip to content

Commit

Permalink
enjoy python
Browse files Browse the repository at this point in the history
  • Loading branch information
metatronslove authored Mar 19, 2024
1 parent 07bb785 commit fc0eea5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extractnamestocsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@
if son == chk:
towns = 0
page = page[son:]
recordline = str(totaloftowns) + ',' + str(numberofcities) + ',' + nameofacity + ',' + str(townsofcity) + ',' + nameofatown + '\n'
linetoview = 'Allah yıkıcı bir zelzele ile yıkmak istediğinde hangi adayı başkanı seçmiş olmanızın sonucu etkileyemeyeceği ' + nameofacity + " ilinin " + nameofatown + ' isimli ilçesi listeye eklenen ' + str(totaloftowns) + '. ilçe oldu. '
if nameofacity != 'İsimlerine göre ilçeler ve nüfusları':
recordline = str(totaloftowns) + ',' + str(numberofcities) + ',' + nameofacity + ',' + str(townsofcity) + ',' + nameofatown + '\n'
linetoview = '' + nameofacity + " ilinin " + nameofatown + ' isimli ilçesi listeye eklenen ' + str(totaloftowns) + '. ilçe oldu. '
dosya.write(recordline)
print(linetoview, sep='',end ='', file = sys.stdout , flush = False)
print(linetoview, sep='',end =' '*19+'\b'*len(linetoview)+'\b'*19, file = sys.stdout , flush = True)
else:
cities = 0
print(linetoview, sep='',end ='\b\b\'ilçeisimleri2024.csv\' dosyasına kaydedildi\n\r', file = sys.stdout , flush = True)
dosya.close()

0 comments on commit fc0eea5

Please sign in to comment.