igorsimb / mp-monitor

Django app for scraping Wildberries
1 stars 0 forks source link

refactor(scrape_items): create helper functions #32

Closed igorsimb closed 1 year ago

igorsimb commented 1 year ago

Fixes https://github.com/igorsimb/mp-monitor/issues/31 scrape_items view was doing too much as one function. Now it looks cleaner and more readable. Created 2 additional helper functions that scrape items from skus sent by the form and update the database with the new info. Also, added a link to the actual item on WB in the item_detail template