scrape a chase email
This commit is contained in:
20
main.go
20
main.go
@@ -1,7 +1,23 @@
|
||||
package main
|
||||
|
||||
import "log"
|
||||
import (
|
||||
"local/sandbox/contact/contact"
|
||||
"log"
|
||||
)
|
||||
|
||||
func main() {
|
||||
log.Println("hello world")
|
||||
config := NewConfig()
|
||||
emailer := &contact.Emailer{
|
||||
IMAP: config.EmailIMAP,
|
||||
From: config.EmailUser,
|
||||
Password: config.EmailPass,
|
||||
}
|
||||
log.Println(emailer)
|
||||
emails, err := emailer.Read()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
for _, email := range emails {
|
||||
log.Println(Scrape(email))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user