Fix photo
This commit is contained in:
parent
7c415c4373
commit
ae913c7d88
1 changed files with 2 additions and 2 deletions
|
|
@ -170,8 +170,8 @@ 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("src"); ok {
|
if link, ok := p.Attr("data-image"); ok {
|
||||||
tweet.Photos = append(tweet.Photos, link)
|
tweet.Photos = append(tweet.Photos, link+"?format=jpg&name=large")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// s.Find(".PlayableMedia-player").Each(func(i int, v *goquery.Selection) {
|
// s.Find(".PlayableMedia-player").Each(func(i int, v *goquery.Selection) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue