29 lines
504 B
Go
29 lines
504 B
Go
package main
|
|
|
|
import (
|
|
"WorstCaptcha"
|
|
"fmt"
|
|
"gopkg.in/gcfg.v1"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
var config WorstCaptcha.Config
|
|
var twitter WorstCaptcha.Twitter
|
|
|
|
// Parse config file
|
|
if err := gcfg.ReadFileInto(&config, "worstcaptcha.gcfg"); err != nil {
|
|
fmt.Printf("Config error: %s\n", err)
|
|
os.Exit(1)
|
|
}
|
|
|
|
// Get Twitter Client
|
|
twitter = WorstCaptcha.NewTwitter(config)
|
|
|
|
// Get images
|
|
for wordlink, _ := range twitter.GetImages() {
|
|
fmt.Println("===================")
|
|
fmt.Println(wordlink)
|
|
}
|
|
}
|