mirror of
https://github.com/arnaucube/argos.git
synced 2026-02-07 11:06:39 +01:00
screen
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
# goTweetsAnalyze
|
# goTweetsAnalyze
|
||||||
twitter analyzer written in Go lang
|
twitter analyzer written in Go lang
|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
needs a twitterConfig.json file on the /build folder with the content:
|
needs a twitterConfig.json file on the /build folder with the content:
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ func printBar(n int) {
|
|||||||
|
|
||||||
func printDays(days map[string]int) {
|
func printDays(days map[string]int) {
|
||||||
for i := 0; i < len(week); i++ {
|
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(" ")
|
fmt.Print(" ")
|
||||||
printBar(days[week[i]])
|
printBar(days[week[i]])
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,4 +49,5 @@ func analyzeWords(tweets []twitter.Tweet) {
|
|||||||
fmt.Println(len(words))
|
fmt.Println(len(words))
|
||||||
//get sorted list of frequency words
|
//get sorted list of frequency words
|
||||||
_ = sortMapWords(words)
|
_ = sortMapWords(words)
|
||||||
|
fmt.Println(" ")
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
2
main.go
2
main.go
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const minNumWords = 4
|
const minNumWords = 10
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("---------------")
|
fmt.Println("---------------")
|
||||||
|
|||||||
BIN
screen1.png
Normal file
BIN
screen1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
Reference in New Issue
Block a user