1. 修复 store_extractor Update 错误.
2. 重构前两个网站的代码架构不合理. 3. 减少冗余代码
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
e := ChannelLink{}
|
||||
e.Execute()
|
||||
Execute()
|
||||
}
|
||||
|
||||
@@ -17,12 +17,8 @@ var estore *intimate.StoreExtractor = intimate.NewStoreExtractor()
|
||||
|
||||
// 获取类型的所有频道链接
|
||||
|
||||
// ChannelLink 频道链接
|
||||
type ChannelLink struct {
|
||||
}
|
||||
|
||||
// Execute 执行任务
|
||||
func (cl *ChannelLink) Execute() {
|
||||
func Execute() {
|
||||
var err error
|
||||
wd := intimate.GetChromeDriver(3030)
|
||||
ps := intimate.NewPerfectShutdown()
|
||||
|
||||
@@ -4,9 +4,8 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCase1(t *testing.T) {
|
||||
e := ChannelLink{}
|
||||
e.Execute()
|
||||
func estCase1(t *testing.T) {
|
||||
Execute()
|
||||
}
|
||||
|
||||
func TestLiveUrl(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user