mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-16 07:23:17 +00:00
feat: add MaxDepth to URL-based configuration and use outputType directly
This commit is contained in:
@@ -64,6 +64,7 @@ func runWeb(cmd *cobra.Command, args []string) error {
|
|||||||
BaseURL: u,
|
BaseURL: u,
|
||||||
CSSLocator: includeSelector,
|
CSSLocator: includeSelector,
|
||||||
ExcludeSelectors: excludeSelectors,
|
ExcludeSelectors: excludeSelectors,
|
||||||
|
MaxDepth: depth,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -74,7 +75,7 @@ func runWeb(cmd *cobra.Command, args []string) error {
|
|||||||
|
|
||||||
scraperConfig := scraper.Config{
|
scraperConfig := scraper.Config{
|
||||||
Sites: siteConfigs,
|
Sites: siteConfigs,
|
||||||
OutputType: cfg.Scrape.OutputType,
|
OutputType: outputType,
|
||||||
Verbose: verbose,
|
Verbose: verbose,
|
||||||
Scrape: scraper.ScrapeConfig{
|
Scrape: scraper.ScrapeConfig{
|
||||||
RequestsPerSecond: cfg.Scrape.RequestsPerSecond,
|
RequestsPerSecond: cfg.Scrape.RequestsPerSecond,
|
||||||
|
|||||||
Reference in New Issue
Block a user