github-actions[bot]
Automated deployment from GitHub Actions: a9d5a91de63ad7224bafe6039fb2b7479388fbf4
0a8c81b Download test_apify.py from VLTA-AI/dropshop: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/VLTA-AI/dropshop/resolve/main/test_apify.py
- Command line
-
hf download hf://spaces/VLTA-AI/dropshop/test_apify.py
-
curl -L -o test_apify.py https://huggingface.co/spaces/VLTA-AI/dropshop/resolve/main/test_apify.py
353 Bytes
| import os | |
| from apify_client import ApifyClient | |
| from dotenv import load_dotenv | |
| load_dotenv("../../.env") | |
| client = ApifyClient(os.environ.get("APIFY_API_TOKEN")) | |
| run = client.actor("junglee/amazon-crawler").call(run_input={"maxItemsPerStartUrl": 1, "categoryOrProductUrls": [{"url": "https://www.amazon.com/s?k=test"}]}) | |
| print(type(run)) | |
| print(dir(run)) | |