Skip to content

我问AI,AI说这个书签是咱们手动添加的吗不是抓取pep自动生成的,但是比起手动增加书签,自动生成pdf时会方便很多是吗 #4

Description

@whether1

没有解释代码逻辑(虽然我还没有学习go语言);readme好像不是很ok;btw,个人愚见,短视频是个工具,工具没有好坏,关键看人怎么用,谁用,我看键政就很热闹;

Microsoft Windows [版本 10.0.19045.6466]
(c) Microsoft Corporation。保留所有权利。

C:\Users\dingxingmei>go install github.com/maogou/pep-ebook@latest
go: github.com/maogou/pep-ebook@latest: module github.com/maogou/pep-ebook: Get "https://proxy.golang.org/github.com/maogou/pep-ebook/@v/list": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

C:\Users\dingxingmei>
C:\Users\dingxingmei>
C:\Users\dingxingmei>go install github.com/maogou/pep-ebook@latest
go: github.com/maogou/pep-ebook@latest: module github.com/maogou/pep-ebook: Get "https://proxy.golang.org/github.com/maogou/pep-ebook/@v/list": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

C:\Users\dingxingmei>
C:\Users\dingxingmei>cd D:\whether1\pep-ebook

C:\Users\dingxingmei>d:

D:\whether1\pep-ebook>pep-ebook --help
'pep-ebook' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

D:\whether1\pep-ebook>go build -o pep-ebook.exe .
go: downloading github.com/urfave/cli/v2 v2.25.7
go: downloading github.com/rs/zerolog v1.30.0
go: downloading github.com/spf13/viper v1.16.0
go: downloading github.com/rs/xid v1.5.0
go: downloading github.com/AlecAivazis/survey/v2 v2.3.7
go: downloading github.com/pdfcpu/pdfcpu v0.4.2
go: downloading github.com/spf13/cast v1.5.1
internal\command\downloader\prepare_select.go:10:2: github.com/AlecAivazis/survey/v2@v2.3.7: Get "https://proxy.golang.org/github.com/%21alec%21aivazis/survey/v2/@v/v2.3.7.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
internal\bookmark\high_school\compulsory\math_compulsory\math_compulsory.go:3:8: github.com/pdfcpu/pdfcpu@v0.4.2: Get "https://proxy.golang.org/github.com/pdfcpu/pdfcpu/@v/v0.4.2.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
internal\command\downloader\add_bookmark.go:7:2: github.com/pdfcpu/pdfcpu@v0.4.2: Get "https://proxy.golang.org/github.com/pdfcpu/pdfcpu/@v/v0.4.2.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
internal\command\downloader\create_pdf.go:7:2: github.com/pdfcpu/pdfcpu@v0.4.2: Get "https://proxy.golang.org/github.com/pdfcpu/pdfcpu/@v/v0.4.2.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
internal\command\downloader\downloader.go:7:2: github.com/rs/xid@v1.5.0: Get "https://proxy.golang.org/github.com/rs/xid/@v/v1.5.0.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
internal\command\downloader\downloader.go:8:2: github.com/rs/zerolog@v1.30.0: Get "https://proxy.golang.org/github.com/rs/zerolog/@v/v1.30.0.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
internal\command\downloader\downloader.go:9:2: github.com/rs/zerolog@v1.30.0: Get "https://proxy.golang.org/github.com/rs/zerolog/@v/v1.30.0.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
internal\command\downloader\sort_image.go:7:2: github.com/spf13/cast@v1.5.1: Get "https://proxy.golang.org/github.com/spf13/cast/@v/v1.5.1.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
internal\command\downloader\downloader.go:10:2: github.com/spf13/viper@v1.16.0: Get "https://proxy.golang.org/github.com/spf13/viper/@v/v1.16.0.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
internal\command\downloader\add_bookmark.go:10:2: github.com/urfave/cli/v2@v2.25.7: Get "https://proxy.golang.org/github.com/urfave/cli/v2/@v/v2.25.7.zip": dial tcp 142.251.34.209:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

D:\whether1\pep-ebook>go build -o pep-ebook.exe .
go: downloading github.com/urfave/cli/v2 v2.25.7
go: downloading github.com/rs/zerolog v1.30.0
go: downloading github.com/spf13/viper v1.16.0
^C
D:\whether1\pep-ebook>
D:\whether1\pep-ebook>
D:\whether1\pep-ebook>
D:\whether1\pep-ebook>go env -w GO111MODULE=on

D:\whether1\pep-ebook>go env -w GOPROXY=https://goproxy.cn,direct

D:\whether1\pep-ebook>
D:\whether1\pep-ebook>go env GOPROXY
https://goproxy.cn,direct

D:\whether1\pep-ebook>
D:\whether1\pep-ebook>go build -o pep-ebook.exe .
go: downloading github.com/urfave/cli/v2 v2.25.7
go: downloading github.com/rs/zerolog v1.30.0
go: downloading github.com/spf13/viper v1.16.0
go: downloading github.com/AlecAivazis/survey/v2 v2.3.7
go: downloading github.com/pdfcpu/pdfcpu v0.4.2
go: downloading github.com/rs/xid v1.5.0
go: downloading github.com/spf13/cast v1.5.1
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/spf13/afero v1.9.5
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/mattn/go-colorable v0.1.12
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673
go: downloading github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
go: downloading golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
go: downloading golang.org/x/text v0.9.0
go: downloading golang.org/x/sys v0.8.0
go: downloading github.com/subosito/gotenv v1.4.2
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/pelletier/go-toml/v2 v2.0.8
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/mattn/go-isatty v0.0.14
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/hhrutter/tiff v1.0.0
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading golang.org/x/image v0.5.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/hhrutter/lzw v1.0.0
go: downloading github.com/rivo/uniseg v0.4.4

D:\whether1\pep-ebook>pep-ebook --help

                                _
                               | |
  _ __     ___   _ __     ___  | |__
 | '_ \   / _ \ | '_ \   / _ \ | '_ \
 | |_) | |  __/ | |_) | |  __/ | |_) |
 | .__/   \___| | .__/   \___| |_.__/
 | |            | |
 |_|            |_|    Version:v1.0.11

NAME:
   pep-ebook - 自动下载带书签(人民教育出版社)的电子书

USAGE:
   pep-ebook [global options] command [command options] [arguments...]

VERSION:
   v1.0.11

AUTHOR:
   Wang Xingyuan <kinyou_xy@foxmail.com>

COMMANDS:
   download  自动下载具体学科带书签的电子书
   upgrade   升级pep-ebook到最新版本
   help, h   Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

COPYRIGHT:
   (c) 2023 Wang Xingyuan

D:\whether1\pep-ebook>pep-ebook download
? 请选择用书学段 初中
? 请选择学生年级 七年级
? 请选择学科 历史
2025/12/07 15:58:48 你选择的学段+年级+学科不存在(维护人员正在努力更新中....),请重新选择

D:\whether1\pep-ebook>pep-ebook download
? 请选择用书学段 初中
? 请选择学生年级 七年级
? 请选择学科 数学
? 请访问 https://book.pep.com.cn/1321001101121/mobile/index.html 按照 README 输入认证请求 <Received>
16:01:51.000 INF 🚨🚨🚨正在生成中请稍等.....🚨🚨🚨 qid=d4qj8p0kh5t2444246og
2025/12/07 16:01:51 解析认证请求

失败

D:\whether1\pep-ebook>pep-ebook download
? 请选择用书学段 初中
? 请选择学生年级 七年级
? 请选择学科 数学
? 请访问 https://book.pep.com.cn/1321001101121/mobile/index.html 按照 README 输入认证请求 <Received>
16:20:16.000 INF 🚨🚨🚨正在生成中请稍等.....🚨🚨🚨 qid=d4qjb7gkh5t0364h7jb0
2025/12/07 16:20:16 解析认证请求

失败

D:\whether1\pep-ebook>
D:\whether1\pep-ebook>
D:\whether1\pep-ebook>
D:\whether1\pep-ebook>
D:\whether1\pep-ebook>
D:\whether1\pep-ebook>^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C
'����������������������' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

D:\whether1\pep-ebook>

D:\whether1\pep-ebook>pep-ebook download
? 请选择用书学段 初中
? 请选择学生年级 七年级
? 请选择学科 数学
? 请访问 https://book.pep.com.cn/1321001101121/mobile/index.html 按照 README 输入认证请求 <Received>
16:20:43.000 INF 🚨🚨🚨正在生成中请稍等.....🚨🚨🚨 qid=d4qjhhokh5t4am03iv7g
2025/12/07 16:20:43 解析认证请求
https://book.pep.com.cn/1321001101241/files/mobile/4.jpg?250830232827
失败

D:\whether1\pep-ebook>pep-ebook download
? 请选择用书学段 初中
? 请选择学生年级 七年级
? 请选择学科 数学
? 请访问 https://book.pep.com.cn/1321001101121/mobile/index.html 按照 README 输入认证请求 <Received>
16:21:58.000 INF 🚨🚨🚨正在生成中请稍等.....🚨🚨🚨 qid=d4qji70kh5t5483eqj70
2025/12/07 16:21:58 解析认证请求
curl ^"https://book.pep.com.cn/1321001101241/files/mobile/21.jpg?250830232827^" ^
  -H ^"sec-ch-ua-platform: ^\^"Windows^\^"^" ^
  -H ^"Referer: https://book.pep.com.cn/1321001101241/mobile/index.html^" ^
  -H ^"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0^" ^
  -H ^"sec-ch-ua: ^\^"Microsoft Edge^\^";v=^\^"143^\^", ^\^"Chromium^\^";v=^\^"143^\^", ^\^"Not A(Brand^\^";v=^\^"24^\^"^" ^
  -H ^"sec-ch-ua-mobile: ?0^"
失败

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions