From e1a408e2a915d9ed030ee012295c6421d64b3efc Mon Sep 17 00:00:00 2001 From: Omar Date: Sat, 30 May 2026 08:30:12 +0300 Subject: [PATCH] Fix the docstrings of some functions. --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 58867d8..c088468 100644 --- a/main.py +++ b/main.py @@ -368,7 +368,7 @@ async def get_endpoint_products(scrape_info: dict, client: Client) -> AsyncGener """Scrapes all available products from a given endpoint. Args: scrape_info: A dictionary containing necessary info such as the url of the endpoint, total products count of the store. - session: A reference of the main scraping session.""" + client: A reference of the main scraping client.""" scrape_url = scrape_info["url"] total_products = scrape_info["total_products"] @@ -397,7 +397,7 @@ async def get_collections(scrape_url: str, client: Client) -> list: """Returns a list of all collections in the store with at least one listed product. Args: scrape_url: The URL of the valid /products.json endpoint of the store. - session: A reference of the main scraping session.""" + client: A reference of the main scraping client.""" parameters = { "page": 1, @@ -450,7 +450,7 @@ async def get_scrape_url(store_url: str, client: Client) -> str: """Returns the valid /products.json URL of a Shopify store. Args: store_url: The normal user-facing URL of the Shopify store. - session: A reference of the main scraping session""" + client: A reference of the main scraping client.""" base_url = "https://" + store_url.split("//")[-1].split("/")[0].split("?")[0] products_endpoint = base_url + "/products.json"