https://github.com/peteryangs/sitecopy2
扒网站
https://github.com/peteryangs/sitecopy2
Last synced: 10 months ago
JSON representation
扒网站
- Host: GitHub
- URL: https://github.com/peteryangs/sitecopy2
- Owner: PeterYangs
- Created: 2022-09-22T08:47:48.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-22T08:52:12.000Z (almost 4 years ago)
- Last Synced: 2024-06-21T02:09:55.818Z (about 2 years ago)
- Language: Go
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# site-copy2
仿站工具
## 安装
```shell
go get github.com/PeterYangs/siteCopy2
```
## 快速开始
```go
package main
import (
"context"
"fmt"
"github.com/PeterYangs/siteCopy2"
)
func main() {
c := siteCopy2.NewCopy(context.Background())
c.Url("https://www.diyiyou.com/", "index.html")
c.Url("https://www.diyiyou.com/newgame/", "news.html")
err := c.Zip("aa.zip")
if err != nil {
fmt.Println(err)
return
}
}
```