Skip to content

Commit eac7434

Browse files
committed
Update alibaba-product-scraper-python
1 parent 4a77375 commit eac7434

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎main.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
"""Run the Alibaba Products Scraper on Apify and save its results as JSON and CSV.
1+
"""Run an Apify Actor and save its results as JSON and CSV.
2+
3+
Actor: Alibaba Products Scraper
24
35
Actor page: https://apify.com/DevilScrapes/alibaba-products-scraper
46
"""
@@ -15,11 +17,12 @@
1517
from apify_client import ApifyClient
1618

1719
ACTOR_ID = "DevilScrapes/alibaba-products-scraper"
20+
ACTOR_TITLE = "Alibaba Products Scraper"
1821
TERMINAL_OK = "SUCCEEDED"
1922

2023

2124
def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
22-
parser = argparse.ArgumentParser(description="Run the Alibaba Products Scraper on Apify.")
25+
parser = argparse.ArgumentParser(description=f"Run the {ACTOR_TITLE} on Apify.")
2326
parser.add_argument("input", nargs="?", default="input.json", help="Actor input JSON file (default: input.json)")
2427
parser.add_argument("--out", default=".", help="Folder for results.json and results.csv (default: here)")
2528
parser.add_argument("--max-charge", type=Decimal, help="Stop the run once it has cost this many USD")

0 commit comments

Comments
 (0)