@@ -32,6 +32,18 @@ func FileCoalInland() () {
path = npath
break
}
+ if i < 3 && !exist{
+ path = "/home/code/python/coal_mail/emailFile/内陆17省动力煤终端用户供耗存.xlsx"
+ exist,err := PathExists(npath)
+ if err != nil {
+ fmt.Println(err)
+ return
+ }
+ if exist{
+ path = npath
+ break
xlFile, err := xlsx.OpenFile(path)
if err != nil {
@@ -18,7 +18,7 @@ func Task() {
//FileCoalJsm()
//FileCoalFirm()
//FileCoalCoastal()
- //FileCoalInland()
+ FileCoalInland()
fmt.Println("end crawler")