intimate/extractor/twitcasting_extractor/twitcasting_extractor_test.go

24 lines
467 B
Go
Raw Normal View History

2020-08-11 10:26:17 +00:00
package main
2020-08-12 04:22:46 +00:00
import (
"testing"
"time"
)
2020-08-11 10:26:17 +00:00
// type LiveData struct {
// UserName string `exp:".//span[@class='tw-live-author__info-username']" method:"Text"`
// Follower string `exp:".//span[@class='tw-user-nav-list-count']" method:"Text"`
// }
func TestMain(t *testing.T) {
2020-08-11 10:26:17 +00:00
main()
}
2020-08-12 04:22:46 +00:00
func TestDateFormat(t *testing.T) {
df := "Sat, 09 Sep 2017 18:19:17 +0900"
if _, err := time.Parse("Mon, 02 Jan 2006 15:04:05 -0700", df); err != nil {
t.Error(err)
}
}