Listings Monitor - News, blogs, issues, articles, products etc. avatar
Listings Monitor - News, blogs, issues, articles, products etc.
Try for free

No credit card required

View all Actors
Listings Monitor - News, blogs, issues, articles, products etc.

Listings Monitor - News, blogs, issues, articles, products etc.

cyberfly/listingmonitor
Try for free

No credit card required

Easily monitor any list of items anywhere on the web for updates and optional keywords and receive alerts (e-mail, mobile push notifications etc.) on changes of interest. Use existing watchers, easily create new ones or request new configs. Useful for any lists, listings, articles, products, etc.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "url": "https://news.ycombinator.com/news",
8  "selectors": [
9    "table table tr[class='athing'] td:nth-child(3) > span > a"
10  ],
11  "scrapers": "// (input) => ({\r\n//     title: {\r\n//         selectors: [\"table table tr[class='athing'] td:nth-child(3) > span > a\"],\r\n//         extractor: node => node.innerText,\r\n//     },\r\n//     links: {\r\n//         contents: {\r\n//             selectors: [\"table table tr[class='athing'] td:nth-child(3) > span > a\"],\r\n//             extractor: node => node.href,\r\n//         },\r\n//         comments: {\r\n//             selectors: [\"table table tr td[class='subtext'] span a[href^=item]:first-child\"],\r\n//             extractor: node => node.href,\r\n//         },\r\n//     },\r\n// })",
12  "filters": "// [\r\n// \t({title}) => title.length > 1,\r\n// \t({links}) => links.contents.includes('http'),\r\n// ]",
13  "proxy": {
14    "useApifyProxy": false
15  }
16}
17EOF
18
19# Run the Actor using an HTTP API
20# See the full API reference at https://docs.apify.com/api/v2
21curl "https://api.apify.com/v2/acts/cyberfly~listingmonitor/runs?token=$API_TOKEN" \
22  -X POST \
23  -d @input.json \
24  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 5 monthly users
  • 94.7% runs succeeded
  • 0.0 days response time
  • Created in Jan 2024
  • Modified 8 days ago
Categories