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

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "url": "https://news.ycombinator.com/news",
9    "selectors": ["table table tr[class='athing'] td:nth-child(3) > span > a"],
10    "scrapers": """// (input) => ({\r
11//     title: {\r
12//         selectors: [\"table table tr[class='athing'] td:nth-child(3) > span > a\"],\r
13//         extractor: node => node.innerText,\r
14//     },\r
15//     links: {\r
16//         contents: {\r
17//             selectors: [\"table table tr[class='athing'] td:nth-child(3) > span > a\"],\r
18//             extractor: node => node.href,\r
19//         },\r
20//         comments: {\r
21//             selectors: [\"table table tr td[class='subtext'] span a[href^=item]:first-child\"],\r
22//             extractor: node => node.href,\r
23//         },\r
24//     },\r
25// })""",
26    "filters": """// [\r
27// \t({title}) => title.length > 1,\r
28// \t({links}) => links.contents.includes('http'),\r
29// ]""",
30    "proxy": { "useApifyProxy": False },
31}
32
33# Run the Actor and wait for it to finish
34run = client.actor("cyberfly/listingmonitor").call(run_input=run_input)
35
36# Fetch and print Actor results from the run's dataset (if there are any)
37for item in client.dataset(run["defaultDatasetId"]).iterate_items():
38    print(item)
Developer
Maintained by Community
Actor metrics
  • 5 monthly users
  • 95.9% runs succeeded
  • 0.0 days response time
  • Created in Jan 2024
  • Modified 3 days ago
Categories