diff --git a/parser_cls.py b/parser_cls.py index cec5b69..2b79bf8 100755 --- a/parser_cls.py +++ b/parser_cls.py @@ -73,8 +73,7 @@ def __parse_page(self): if len(self.viewed_list) > 5000: self.viewed_list = self.viewed_list[-900:] else: - with open('viewed.txt', 'w') as file: - self.viewed_list = [] + self.viewed_list = [] titles = self.driver.find_elements(LocatorAvito.TITLES[1], by="css selector") items = []