From caf3c545156d25e95de1acbfdc0f556295463c28 Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Wed, 27 Apr 2016 13:10:57 +0200 Subject: [PATCH] Print print print --- scraper.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/scraper.go b/scraper.go index 4d93aaf..0362c57 100644 --- a/scraper.go +++ b/scraper.go @@ -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) } }