Comments (4)
There currently is no automatic rate limiting, so it depends on how many GitHub links you want to check.
When using GITHUB_TOKEN
, the rate limit is 1,000 requests per hour per repository.
You can check with
lychee --dump --include github README.md | wc -l
If the number is big, you can try to manually configure the number of concurrent requests:
--max-concurrency 10
Also see the lychee docs.
from lychee.
Thank you for your response, I ran your command and confirmed that there are ~700 GitHub links in the file. However, even if I limit the max-concurrency to 1, there are still ~100 links with 429 error code. Is this normal?
from lychee.
If you run lychee twice, that would be 1400 links and so on the second run I'd expect 400 links to fail if all requests were done asynchronously. With --max-concurrency 1
, the entire runtime would be the sum of all individual requests, so the request budget might hold a bit longer, so the 100 failing links sound about right then. Not sure if that's the case.
Nonetheless, per host rate limiting is on the roadmap, but it's not there yet. The next best thing is probably caching requests with --cache
.
from lychee.
My previous comment sums up all existing possibilities as of today. Will close this in favor of #989, which will tackle per-host rate limiting.
from lychee.
Related Issues (20)
- custom Header not sent HOT 7
- Consider renaming `--format` to `--report` HOT 5
- Comments to ignore links HOT 1
- Consider renaming `fail_map` to `error_map` HOT 3
- Screencast SVG incurs a rendering burden on the browser HOT 1
- Optionally: Collect all URLs and deduplicate them? HOT 3
- Optionally: retrieve titles of pages and URL fragment targets? HOT 3
- Parameter --base does not work on windows HOT 13
- Archive integration with `lychee_lib` HOT 1
- bug: anchor/fragment detection doesn't appear to work HOT 1
- Windows Filepaths With a Drive Specifier Incorrectly Identified as Urls
- Mastodon link is interpreted as email address HOT 1
- ci: inconsistent naming of gh release assets
- Support URL Encoded Anchors
- Convert `StatusCode` to `Status` HOT 3
- Emails resulting in "Failed: Cannot find file" HOT 4
- [macos] release asset lychee-v0.15.1-macos-x86_64.dmg contains only ARM64 executable HOT 6
- Confusing exit 2, although no error visible
- Bug: lychee can not detect error relative url HOT 2
- Bug: unable to check url inside <style> tag and css file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lychee.