Browse Source

screen

master
arnaucode 7 years ago
parent
commit
4addf9d551
6 changed files with 6 additions and 2 deletions
  1. +3
    -0
      README.md
  2. +1
    -1
      analyzeDates.go
  3. +1
    -0
      analyzeWords.go
  4. BIN
      build/goTweetsAnalyze
  5. +1
    -1
      main.go
  6. BIN
      screen1.png

+ 3
- 0
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:
```
{

+ 1
- 1
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]])
}

+ 1
- 0
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(" ")
}

BIN
build/goTweetsAnalyze


+ 1
- 1
main.go

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

BIN
screen1.png

Before After
Width: 521  |  Height: 969  |  Size: 44 KiB

Loading…
Cancel
Save