hashtag analysis, and some updates

This commit is contained in:
arnaucode
2017-04-16 23:14:42 +02:00
parent ccfc1f6edc
commit 01099f172f
9 changed files with 78 additions and 36 deletions

View File

@@ -8,23 +8,26 @@ import (
)
const minNumWords = 10
const minNumHashtag = 2
const iterationsCount = 3
func main() {
fmt.Println("---------------")
fmt.Print("\x1b[36;1m") //cyan
fmt.Println("goTweetsAnalyze initialized")
fmt.Print("\x1b[0m") //defaultColor
fmt.Println("Reading twitterConfig.json file")
client := readConfigTokensAndConnect()
fmt.Println("---------------")
newcommand := bufio.NewReader(os.Stdin)
fmt.Print("Please select command number:")
fmt.Print("Please select command number")
options := `
1 - Analyze username
0 - Exit script
option to select: `
for {
fmt.Print(options)
option, _ := newcommand.ReadString('\n')
option = strings.TrimSpace(option)