File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class IQPuzzlesRecipe implements Recipe {
2323
2424 this . recipe = new NameAndImageRecipe < IQPuzzle > (
2525 IQPuzzlesRecipe . NAME ,
26- IQPuzzlesRecipe . #SCRAPE_URL,
26+ [ IQPuzzlesRecipe . #SCRAPE_URL] ,
2727 markdownTableFactory ,
2828 markdownTableConverter ,
2929 trackablesUpdater ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export class NameAndImageRecipe<ParsedElement extends NameAndImage> implements R
1616
1717 constructor (
1818 private name : string ,
19- private scrapeURL : string ,
19+ private scrapeURLs : string [ ] ,
2020 private markdownTableFactory : MarkdownTableFactory ,
2121 private markdownTableConverter : MarkdownTableConverter ,
2222 private trackablesUpdater : TrackablesUpdater ,
@@ -43,9 +43,9 @@ export class NameAndImageRecipe<ParsedElement extends NameAndImage> implements R
4343 }
4444
4545 async #scrapePuzzles( ) : Promise < ParsedElement [ ] > {
46- const scraper = new WebsiteScraper ( [ {
47- url : this . scrapeURL
48- } ] ) ;
46+ const scraper = new WebsiteScraper (
47+ this . scrapeURLs . map ( url => ( { url } ) )
48+ ) ;
4949
5050 return await scraper . scrape (
5151 this . parseContent ,
You can’t perform that action at this time.
0 commit comments