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

实现爬虫检测中间件 #22

Merged
merged 5 commits into from
Apr 6, 2024
Merged

Conversation

chenmingyong0423
Copy link
Contributor

目前在白名单内的爬虫有:

  • 百度
  • 必应
  • 谷歌
  • 搜狗

Copy link

codecov bot commented Mar 31, 2024

Codecov Report

Attention: Patch coverage is 87.87879% with 16 lines in your changes are missing coverage. Please review.

Project coverage is 84.50%. Comparing base (80840e6) to head (e2b571d).

Files Patch % Lines
internal/crawlerdetect/crawler_detector.go 75.67% 7 Missing and 2 partials ⚠️
middlewares/crawlerdetect/builder.go 93.84% 3 Missing and 1 partial ⚠️
internal/crawlerdetect/sogou_strategy.go 83.33% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
+ Coverage   83.75%   84.50%   +0.75%     
==========================================
  Files          20       26       +6     
  Lines         591      723     +132     
==========================================
+ Hits          495      611     +116     
- Misses         88      100      +12     
- Partials        8       12       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@flycash flycash merged commit 1226b60 into ecodeclub:main Apr 6, 2024
7 checks passed
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.

2 participants