Install
openclaw skills install apify-hn-scraperScrape Hacker News stories, comments, and discussions. Use when user asks to search HN, find Hacker News posts, monitor tech discussions, or extract HN data. Requires APIFY_TOKEN environment variable.
openclaw skills install apify-hn-scraperScrape Hacker News using an Apify Actor via the REST API.
0UDODOnpTkxY3Oc90
APIFY_TOKEN environment variable must be setcurl and jq must be availableAsk what they want to scrape. Supported input fields:
searchTerms (array of strings) - keywords to searchmaxResults (integer) - max stories to returnsortBy (string) - "points", "date", or "relevance"includeComments (boolean) - include comment threadsRESULT=$(curl -s -X POST "https://api.apify.com/v2/acts/0UDODOnpTkxY3Oc90/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchTerms": ["TERM"], "maxResults": 30}')
echo "$RESULT" | jq '.'
RUN_ID=$(curl -s -X POST "https://api.apify.com/v2/acts/0UDODOnpTkxY3Oc90/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchTerms": ["TERM"], "maxResults": 100}' | jq -r '.data.id')
curl -s "https://api.apify.com/v2/actor-runs/$RUN_ID?token=$APIFY_TOKEN" | jq -r '.data.status'
curl -s "https://api.apify.com/v2/actor-runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN" | jq '.'
Summarize: top stories by points, comment counts, domains, trends. Offer JSON/CSV export.
export APIFY_TOKEN=your_token