Skip to content

Commit

Permalink
LANTERN-782: Pushing only domain url
Browse files Browse the repository at this point in the history
  • Loading branch information
archita-ekkirala committed Nov 22, 2024
1 parent 9b68e3c commit efb1785
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func CuremdWebscraper(CHPLURL string, fileToWriteTo string) {
if pTag.Length() > 0 {
pTag.Find("a").Each(func(i int, link *goquery.Selection) {
url, exists := link.Attr("href")
url = strings.TrimSuffix(url, "/metadata")
if exists {
entry.URL = url
lanternEntryList = append(lanternEntryList, entry)
Expand Down

0 comments on commit efb1785

Please sign in to comment.