arnaucube
arnaucube/argosPublic Self-hosted repository
small update
arnaucode idoctnef@openmailbox.org
Sat, 15 Apr 2017 16:20:43 +0200
commit

ee7caca895ab42a7603b3a0b19698138901c6d14

parent

4addf9d551bed0bfb145a7840aaf73391dd2da69

7 files changed, 16 insertions(+), 2 deletions(-)

jump to
M README.md → README.md

@@ -2,7 +2,9 @@ # goTweetsAnalyze

twitter analyzer written in Go lang -![Alt text](https://raw.githubusercontent.com/arnaucode/goTweetsAnalyze/master/screen1.png "screen") +![Alt text](https://raw.githubusercontent.com/arnaucode/goTweetsAnalyze/master/screen3.png "screen") + +![Alt text](https://raw.githubusercontent.com/arnaucode/goTweetsAnalyze/master/screen2.png "screen") 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") }
M main.go → main.go

@@ -7,7 +7,7 @@ "os"

"strings" ) -const minNumWords = 10 +const minNumWords = 3 func main() { fmt.Println("---------------")