Fix photo
This commit is contained in:
parent
69c8b035ea
commit
7c415c4373
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ func readTweetsFromHTML(htm *strings.Reader) ([]*Tweet, error) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
s.Find(".NaturalImage-image").Each(func(i int, p *goquery.Selection) {
|
s.Find(".NaturalImage-image").Each(func(i int, p *goquery.Selection) {
|
||||||
if link, ok := p.Attr("data-image"); ok {
|
if link, ok := p.Attr("src"); ok {
|
||||||
tweet.Photos = append(tweet.Photos, link)
|
tweet.Photos = append(tweet.Photos, link)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue