add more image urls

This commit is contained in:
Seraphim Strub 2024-05-30 22:01:13 +00:00
parent 0b97f282e2
commit 3a076998f9
5 changed files with 74 additions and 75 deletions

View file

@ -20,6 +20,7 @@ type HumbleBundleStruct struct {
}
func NewHumbleBundleApi(logger *slog.Logger) HumbleBundleStruct {
// TODO: does this still work and if yes, get image
humbleBundle := HumbleBundleStruct{
url: "https://www.humblebundle.com/",
baseUrl: "https://www.humblebundle.com/store/",
@ -80,7 +81,7 @@ func (e HumbleBundleStruct) Load() error {
return nil
case tt == html.StartTagToken:
t := bodyStore.Token()
if t.Data != "script" {
if t.Data != "script" { // only <script> tag
continue
}
for _, a := range t.Attr {