diff --git a/README.md b/README.md index 034a106..d938fea 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # goTweetsAnalyze twitter analyzer written in Go lang + +![Alt text](https://raw.githubusercontent.com/arnaucode/goTweetsAnalyze/master/screen1.png "screen") + needs a twitterConfig.json file on the /build folder with the content: ``` { diff --git a/analyzeDates.go b/analyzeDates.go index 76fa363..1a3bb28 100644 --- a/analyzeDates.go +++ b/analyzeDates.go @@ -19,7 +19,7 @@ func printBar(n int) { func printDays(days map[string]int) { for i := 0; i < len(week); i++ { - fmt.Print(week[i] + " - " + strconv.Itoa(days[week[i]])) + fmt.Print(week[i] + " - " + strconv.Itoa(days[week[i]]) + "tw") fmt.Print(" ") printBar(days[week[i]]) } diff --git a/analyzeWords.go b/analyzeWords.go index 51bf281..9664f90 100644 --- a/analyzeWords.go +++ b/analyzeWords.go @@ -49,4 +49,5 @@ func analyzeWords(tweets []twitter.Tweet) { fmt.Println(len(words)) //get sorted list of frequency words _ = sortMapWords(words) + fmt.Println(" ") } diff --git a/build/goTweetsAnalyze b/build/goTweetsAnalyze index 899dbc8..0383a76 100755 Binary files a/build/goTweetsAnalyze and b/build/goTweetsAnalyze differ diff --git a/main.go b/main.go index aa9ea23..1ad8244 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( "strings" ) -const minNumWords = 4 +const minNumWords = 10 func main() { fmt.Println("---------------") diff --git a/screen1.png b/screen1.png new file mode 100644 index 0000000..9f9d157 Binary files /dev/null and b/screen1.png differ