feat: implement rate limiting for URL scraping

This commit is contained in:
Arik Jones (aider)
2024-09-19 15:22:02 -05:00
parent f9eee282bc
commit d44fabf783
2 changed files with 42 additions and 4 deletions

View File

@@ -15,8 +15,10 @@ type Config struct {
}
type ScrapeConfig struct {
URLs []URLConfig `yaml:"urls"`
OutputType string `yaml:"output_type"`
URLs []URLConfig `yaml:"urls"`
OutputType string `yaml:"output_type"`
RequestsPerSecond float64 `yaml:"requests_per_second"`
BurstLimit int `yaml:"burst_limit"`
}
type URLConfig struct {