Strip the text before to return it
This commit is contained in:
parent
057c19a8af
commit
e7a9fd1482
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class WeatherPage(BasePage):
|
||||||
low = self.get_temp_without_unit(temp.split('|')[0])
|
low = self.get_temp_without_unit(temp.split('|')[0])
|
||||||
high = self.get_temp_without_unit(temp.split('|')[1])
|
high = self.get_temp_without_unit(temp.split('|')[1])
|
||||||
broad = self.parser.select(div, 'div/div/div[@class="day-summary-broad"]',
|
broad = self.parser.select(div, 'div/div/div[@class="day-summary-broad"]',
|
||||||
1, method='xpath').text_content()
|
1, method='xpath').text_content().strip()
|
||||||
uvs = self.parser.select(div, 'div/div/div[@class="day-summary-uv"]',
|
uvs = self.parser.select(div, 'div/div/div[@class="day-summary-uv"]',
|
||||||
method='xpath')
|
method='xpath')
|
||||||
uv = u''
|
uv = u''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue