Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

102401339 - work2 #88

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

renbaoshuo
Copy link
Contributor

@renbaoshuo renbaoshuo commented Nov 19, 2024

本 Pull Request 希望使用 merge 形式合并,而非 squash merge / rebase merge

To Do

  • 文件系统爬虫
    • 基础功能
    • 数据库
    • 点击量爬取
    • 并发

@renbaoshuo renbaoshuo requested a review from Copilot November 20, 2024 10:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 suggestions.

Files not reviewed (2)
  • work2/renbaoshuo/.gitignore: Language not supported
  • work2/renbaoshuo/fzu/go.mod: Language not supported
Comments skipped due to low confidence (1)

work2/renbaoshuo/fzu/main.go:88

  • [nitpick] The variable name 'regexp' is too generic. It should be renamed to 'totalPagesRegexp' for clarity.
regexp := regexp.MustCompile(patternTotalPages)


resp, err := client.Get(url)
if err != nil {
fmt.Printf("Error occurred while getting %s: %s", url, err)
Copy link
Preview

Copilot AI Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message should specify that it's an HTTP GET request. Suggested: "Error occurred while performing HTTP GET request to %s: %s".

Suggested change
fmt.Printf("Error occurred while getting %s: %s", url, err)
fmt.Printf("Error occurred while performing HTTP GET request to %s: %s", url, err)

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
work2/renbaoshuo/fzu/main.go Outdated Show resolved Hide resolved
@FantasyRL FantasyRL changed the title 102401339 - work1 102401339 - work2 Nov 22, 2024
@renbaoshuo renbaoshuo marked this pull request as ready for review December 2, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant