probably could be done better by converting some HtmlEvents to some other type of model which has additional fields for the other links, or just reducing the amount of links one captures to 1/2
To debug:
for y in events():
if hasattr(y, 'links'):
if hasattr(y, 'Service') and y.Service == "Maps":
continue
j = json.loads(y.links)
if len(j) > 1:
print(y)
print(j)
parsing multiple links and having to call e.parse_json() on every element isnt great
https://github.com/seanbreckenridge/HPI/blob/master/my/google/models.py#L7-L32
probably could be done better by converting some HtmlEvents to some other type of model which has additional fields for the other links, or just reducing the amount of links one captures to 1/2
To debug: