Skip to content

Commit f1bf50a

Browse files
committed
encode the text in utf-8
1 parent ed1d5ea commit f1bf50a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

restaurant_names.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919

2020
count = 0
2121
for info in names:
22-
title = info.text
23-
print(str(title))
22+
title = info.text.encode("utf-8")
23+
print(title)
2424
count += 1
25-
file.write(str(title) + '\n')
25+
file.write(title + '\n')
2626
print(f"{count} RESTAURANTS FOUND...")
27+
print(start)

0 commit comments

Comments
 (0)