Skip to content

Commit 6da8f8f

Browse files
author
lenarsaitov
committed
fix max_house_year param and encoding
1 parent 1a91782 commit 6da8f8f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cianparser/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
MIN_BALCONIES = "&min_balconies={}"
1313
HAVE_LOGGIA = "&loggia=1"
1414
MIN_HOUSE_YEAR = "&min_house_year={}"
15-
MAX_HOUSE_YEAR = "&min_house_year={}"
15+
MAX_HOUSE_YEAR = "&max_house_year={}"
1616
MIN_PRICE = "&minprice={}"
1717
MAX_PRICE = "&maxprice={}"
1818
MIN_FLOOR = "&minfloor={}"

cianparser/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def parse_block(self, block):
288288
pass
289289

290290
try:
291-
common_data["author"] = transliterate.translit(common_data["author"], reversed=True)
291+
author_data["author"] = transliterate.translit(author_data["author"], reversed=True)
292292
except:
293293
pass
294294

@@ -378,7 +378,7 @@ def save_results(self):
378378
self.correlate_fields_to_deal_type()
379379
keys = self.result[0].keys()
380380

381-
with open(self.file_path, 'w', newline='') as output_file:
381+
with open(self.file_path, 'w', newline='', encoding='utf-8') as output_file:
382382
dict_writer = csv.DictWriter(output_file, keys, delimiter=';')
383383
dict_writer.writeheader()
384384
dict_writer.writerows(self.result)

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = cianparser
3-
version = 0.4.30
3+
version = 0.4.31
44
description = Parser information from Cian website
55
url = https://github.com/lenarsaitov/cianparser
66
author = Lenar Saitov

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='cianparser',
9-
version='0.4.30',
9+
version='0.4.31',
1010
description='Parser information from Cian website',
1111
url='https://github.com/lenarsaitov/cianparser',
1212
author='Lenar Saitov',

0 commit comments

Comments
 (0)