small update

This commit is contained in:
arnaucode
2017-04-15 16:20:43 +02:00
parent 4addf9d551
commit ee7caca895
7 changed files with 16 additions and 2 deletions

View File

@@ -2,7 +2,9 @@
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:
```

View File

@@ -66,7 +66,9 @@ func analyzeHours(tweets []twitter.Tweet) {
}
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)
}

Binary file not shown.

View File

@@ -23,7 +23,17 @@ func getUser(client *twitter.Client) {
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")
}

View File

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

BIN
screen2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
screen3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB