driscoll42 / ebayMarketAnalyzer

Scrape all eBay sold listings to determine average/median pricing, plot listings over time with trend lines, and extract to excel
195 stars 26 forks source link

Pull out repeated variables to a class for more pythonic code #36

Closed driscoll42 closed 3 years ago

driscoll42 commented 3 years ago

Is your feature request related to a problem? Please describe. There are a number of variables which get passed down a chain of function calls, ebay_search => ebay_scrape => get_quantity_hist, etc... It just makes the code messy and often it's easy to miss one if adding a new variable.

Describe the solution you'd like Make a Dataclass (https://www.geeksforgeeks.org/understanding-python-dataclasses/) to store all the variables and just call that instead