File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 - name : Set up Go
2929 uses : actions/setup-go@v5
3030 with :
31- go-version : " 1.25"
31+ go-version-file : go.mod
32+
33+ - name : Tidy modules
34+ run : go mod tidy
3235
3336 - name : Build
3437 env :
Original file line number Diff line number Diff line change 11module websearch
22
3- go 1.25.0
3+ go 1.25
44
55require (
66 github.com/PuerkitoBio/goquery v1.12.0
Original file line number Diff line number Diff line change @@ -34,10 +34,12 @@ func BuildAcademic(opts struct {
3434 engines = append (engines , NewPubMed (opts .PubMed , nil ))
3535 }
3636
37- // 国际引擎:Semantic Scholar 和 Google Scholar 仅在配置代理时启用(国内无代理不可达)
38- if opts .Arxiv .Enabled && opts .Network >= antirobot .RegionInternational {
37+ // 国内引擎:arXiv 国内可直连
38+ if opts .Arxiv .Enabled && opts .Network >= antirobot .RegionChina {
3939 engines = append (engines , NewArxiv (opts .Arxiv , nil ))
4040 }
41+
42+ // 国际引擎:Semantic Scholar 和 Google Scholar 仅在配置代理时启用(国内无代理不可达)
4143 if opts .Proxy != "" {
4244 intlClient := buildProxyClient (opts .Proxy )
4345 if opts .SemanticScholar .Enabled && opts .Network >= antirobot .RegionInternational {
You can’t perform that action at this time.
0 commit comments