diff --git a/samsung_shop/samsung_shop_monitor.py b/samsung_shop/samsung_shop_monitor.py index c07ff5c..b9d5778 100644 --- a/samsung_shop/samsung_shop_monitor.py +++ b/samsung_shop/samsung_shop_monitor.py @@ -37,6 +37,10 @@ async def main(): get_category_products, proxies, collection, + headers={ + "origin": "https://www.samsung.com", + "referer": "https://www.samsung.com/us/shop/offer-program/education/", + }, ) LOGGER.info("tasks completed sleeping", extra={"delay": CYCLE_DELAY}) await asyncio.sleep(CYCLE_DELAY) @@ -165,4 +169,5 @@ def extract_products(response: dict) -> list[Product]: return products -asyncio.run(main()) +if __name__ == "__main__": + asyncio.run(main())