Urvashi74 / slash

Slash is a command line tool that scrapes the most popular e-commerce websites to get the best deals on the searched items across these websites.
MIT License
2 stars 3 forks source link

Abstracting Web Scraper #7

Closed Urvashi74 closed 2 years ago

bradley-erickson commented 2 years ago

The 2 current webscrapers are the same. I assume that future webscrapers will follow a similar pattern.

That being said, I plan to create an abstracted version of the current webscrapers that take a config variable that contain specifics for each webscraper. I.e. a walmart config, an amazon config, and a target config variable.

We can add an additional parameter that determines which scrapers to run, default being all. With this parameter, we can easily only call the specific configs to run the scraper on.

TODO: