tapology now uses hamming distance to get approximately correct link

This commit is contained in:
2024-07-03 15:28:13 -05:00
parent ad7b487954
commit 02f27034d5
7 changed files with 87 additions and 23 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func parse_ufc_event(url string, b []byte) *Event {
doc := document_from_bytes(b)
parts := doc.Find(".c-hero__headline-prefix, .c-hero__headline").Map(func(i int, s *goquery.Selection) string {
return cleanup_string(s.Text())
return cleanup_whitespace(s.Text())
})
event.Name = strings.Join(parts, ": ")
event.Location = text_content(doc, ".field--name-venue")