> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keyflow.space/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape Hacker News

### **Overview:**

The `Scrape Hacker News` block automates the gathering of news articles from Hacker News based on a specified search query. This block helps users stay updated on specific topics by eliminating the need for manual searches, thus simplifying the process of finding relevant, topic-specific articles.

***

### Inputs & Outputs

| I/O    | Feature       | Type      | Simple Explanation                                                                         |
| ------ | ------------- | --------- | ------------------------------------------------------------------------------------------ |
| input  | `query`       | string    | The search term or query used to find matching articles.                                   |
| input  | `num_pages`   | number    | The number of pages to retrieve results that correspond to the query (maximum value is 5). |
| output | `post_titles` | string\[] | An array containing titles of the posts retrieved.                                         |
| output | `post_links`  | string\[] | An array containing links to the respective posts.                                         |

***

### Use Cases

Consider how this block can streamline processes in practical situations:

* **Research and Journalism:** Journalists and researchers can use this block for efficient information gathering focused on technology trends and industry updates without sifting through irrelevant data.
* **Tech Enthusiasts:** Individuals passionate about technology can effortlessly keep track of new developments, innovations, and startups by querying specific topics.
* **Community Trend Monitoring:** Track popular discussions within the tech community effectively; this tool excludes posts labeled as "AskHN," "ShowHN," or "LaunchHN", concentrating solely on valuable conversations.

In summary, whenever there's a necessity to fetch article content based on particular interests or queries, the `Scrape Hacker News` block is an invaluable resource!
