Skip to content

Commit

Permalink
surugaya: Strip whitespace from item title
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvdheuvel committed Aug 20, 2024
1 parent 552195a commit 772b559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surugaya.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ async def normalize_item(self, data: dict) -> AbstractItem:
async with aiohttp.ClientSession() as session:
page_response = await session.get(item.url, headers=self.headers)
soup = BeautifulSoup(await page_response.text(), 'html.parser')
item.title = soup.find('h1', id="item_title").text
item.title = soup.find('h1', id="item_title").text.strip()

return item

0 comments on commit 772b559

Please sign in to comment.