|
|
|
@ -1,15 +1,12 @@
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"WorstCaptcha"
|
|
|
|
|
"fmt"
|
|
|
|
|
// "github.com/kurrik/oauth1a"
|
|
|
|
|
"github.com/kurrik/twittergo"
|
|
|
|
|
|
|
|
|
|
"gopkg.in/gcfg.v1"
|
|
|
|
|
"os"
|
|
|
|
|
|
|
|
|
|
"WorstCaptcha"
|
|
|
|
|
"reflect"
|
|
|
|
|
"strings"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
@ -41,9 +38,13 @@ func main() {
|
|
|
|
|
// Get the link
|
|
|
|
|
imageUrl := media["media_url_https"]
|
|
|
|
|
|
|
|
|
|
fmt.Printf("%s => ", reflect.TypeOf(imageUrl))
|
|
|
|
|
fmt.Println(imageUrl)
|
|
|
|
|
// Parts of word
|
|
|
|
|
parts := strings.Split(tweet.Text(), " ")
|
|
|
|
|
|
|
|
|
|
// Build word without link
|
|
|
|
|
word := strings.Join(parts[0:len(parts)-1], " ")
|
|
|
|
|
|
|
|
|
|
//fmt.Println(tweet.Text())
|
|
|
|
|
fmt.Println(imageUrl)
|
|
|
|
|
fmt.Println(word)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|