small update
arnaucode idoctnef@openmailbox.org
Sat, 15 Apr 2017 16:20:43 +0200
7 files changed,
16 insertions(+),
2 deletions(-)
M
README.md
→
README.md
@@ -2,7 +2,9 @@ # goTweetsAnalyze
twitter analyzer written in Go lang - + + + needs a twitterConfig.json file on the /build folder with the content: ```
M
analyzeDates.go
→
analyzeDates.go
@@ -66,7 +66,9 @@ printHours(hours)
} func analyzeDates(tweets []twitter.Tweet) { + fmt.Println("Weekly activity distribution (per day)") analyzeDays(tweets) fmt.Println(" ") + fmt.Println("Daily activity distribution (per hour)") analyzeHours(tweets) }
M
getUser.go
→
getUser.go
@@ -23,7 +23,17 @@ ScreenName: username,
Count: 200, }) + fmt.Println("word count") analyzeWords(tweets) analyzeDates(tweets) + + fmt.Println(" ") + fmt.Print("first tweet analyzed: ") + fmt.Println(tweets[len(tweets)-1].CreatedAt) + fmt.Print("last tweet analyzed: ") + fmt.Println(tweets[0].CreatedAt) + + fmt.Println(" ") + fmt.Println("User @" + username + " analysis finished") }