Skip to content

Commit

Permalink
Handle nbsp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonty committed Sep 13, 2023
1 parent 7053c60 commit e2dd1a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scrape-openhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import json
import re
import time
import unicodedata
from datetime import datetime, timedelta

import requests
Expand Down Expand Up @@ -263,6 +264,7 @@
if notes_node:
notes = notes_node[0]
time_string = event.xpath(".//p[not(@*)]")[0].text_content()
time_string = unicodedata.normalize("NFKD", time_string)

all_day = False
if time_string == "All day":
Expand Down

0 comments on commit e2dd1a8

Please sign in to comment.