💀Ҁ
'name': response.xpath('//h1[@class="vacancy_title"]/text()').extract_first().strip()
но текст бывает не всегда, от этого strip() падает ошибкой (захламляет вывод)
как-то можно в одну строчку сделать проверку
if is not None?
Size: a a a
💀Ҁ
'name': response.xpath('//h1[@class="vacancy_title"]/text()').extract_first().strip()
if is not None?
💀Ҁ
💀Ҁ
'name': response.xpath('//h1[@class="vacancy_title"]/text()').extract_first().get(default='').strip(),
AttributeError: 'str' object has no attribute 'get'
💀Ҁ
💀Ҁ
.get
.extract_first
iz
.get
.extract_first
💀Ҁ
SS
К
AR
AR
if __name__ == '__main__'
V
i
i