mirror of
https://github.com/arnaucube/argos.git
synced 2026-02-07 19:16:40 +01:00
hashtag analysis, and some updates
This commit is contained in:
7
main.go
7
main.go
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user