← Hacker News + Amara integrations

Fetch Raw Subtitles with Amara API on New Comments by Keyword from Hacker News API

Pipedream makes it easy to connect APIs for Amara, Hacker News and 3,000+ other apps remarkably fast.

Trigger workflow on
New Comments by Keyword from the Hacker News API
Next, do this
Fetch Raw Subtitles with the Amara API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Hacker News trigger and Amara action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Comments by Keyword trigger
    1. Connect your Hacker News account
    2. Configure timer
    3. Optional- Configure Keyword
  3. Configure the Fetch Raw Subtitles action
    1. Connect your Amara account
    2. Optional- Configure Team
    3. Select a Video ID
    4. Select a Language
    5. Select a Subtitles format
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new comments that mention a specific keyword
Version:0.0.4
Key:hacker_news-new-comments-by-keyword

Hacker News Overview

The Hacker News API on Pipedream allows you to tap into the vibrant pool of stories, comments, and user data from one of tech's favorite forums. By leveraging this API, you can automate the process of extracting data for analysis, tracking mentions of specific topics, or even monitoring the performance of your own submissions. The real power lies in integrating this wealth of information with other services to create custom, automated workflows that save time and keep you informed.

Trigger Code

const Parser = require("rss-parser"); const { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } = require("@pipedream/platform"); const hacker_news = require("../../hacker_news.app.js"); const parser = new Parser(); module.exports = { key: "hacker_news-new-comments-by-keyword", name: "New Comments by Keyword", description: "Emit new comments that mention a specific keyword", app: "hacker_news", version: "0.0.4", type: "source", props: { hacker_news, timer: { type: "$.interface.timer", default: { intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL, }, }, db: "$.service.db", // If you want a single search feed but multiple keywords, separate the keywords with " OR ": keyword: { type: "string", label: "Keyword", description: "Keyword to watch. Matches comments. Leave blank to get all comments.", optional: true, default: "", }, }, methods: { // in theory if alternate setting title and description or aren't unique this won't work itemKey(item) { return item.guid || item.id || item.title || item.description; }, }, async run() { const seenKeys = this.db.get("seenKeys") || []; const seenKeysMap = seenKeys.reduce((acc, v) => { acc[v] = true; return acc; }, {}); // All elements of an item are optional, // however at least one of title or description must be present. // should be listed from most recent to least recent const feed = await parser.parseURL(`https://hnrss.org/newcomments?q=${encodeURIComponent(this.keyword)}`); for (let idx = feed.items.length - 1; idx >= 0; idx--) { const item = feed.items[idx]; const key = this.itemKey(item); // XXX throw if !key? if (seenKeysMap[key]) continue; seenKeys.unshift(key); seenKeysMap[key] = true; // just in case of dupes this.$emit(item, { id: this.itemKey(item), summary: item.title, ts: item.pubdate && +new Date(item.pubdate), }); } if (seenKeys.length) { // XXX restrict by byte size instead of el size this.db.set("seenKeys", seenKeys.slice(0, 1000)); } }, }; 

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Hacker Newshacker_newsappThis component uses the Hacker News app.
timer$.interface.timer
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
Keywordkeywordstring

Keyword to watch. Matches comments. Leave blank to get all comments.

Trigger Authentication

The Hacker News API does not require authentication.

About Hacker News

Social news website

Action

Description:Fetch raw subtitles. [See the docs here](https://apidocs.amara.org/#fetch-raw-subtitles)
Version:0.0.3
Key:amara-fetch-raw-subtitles

Amara Overview

The Amara API provides programmatic access to Amara’s community-driven subtitle creation and translation services. With this API, you can automate subtitle workflows, streamline video content translation, and integrate with other services to create efficient localization processes. The API allows you to manage videos, subtitles, and teams, offering a doorway to effortlessly scaling your video content to reach global audiences.

Action Code

import amara from "../../amara.app.mjs"; import constants from "../../common/constants.mjs"; import utils from "../common/utils.mjs"; export default { key: "amara-fetch-raw-subtitles", name: "Fetch Raw Subtitles", description: "Fetch raw subtitles. [See the docs here](https://apidocs.amara.org/#fetch-raw-subtitles)", type: "action", version: "0.0.3", annotations: { destructiveHint: true, openWorldHint: true, readOnlyHint: false, }, props: { amara, team: { propDefinition: [ amara, "team", ], }, videoId: { propDefinition: [ amara, "videoId", ({ team }) => ({ team: utils.emptyStrToUndefined(team), }), ], }, language: { propDefinition: [ amara, "language", ({ videoId }) => ({ videoId, }), ], }, format: { description: "The format to return the subtitles in. This can be any format that amara supports including `dfxp`, `srt`, `vtt`, and `sbv`.", optional: false, propDefinition: [ amara, "subFormat", () => ({ notAllowedFormats: [ constants.FORMAT_TYPES.JSON, ], }), ], }, }, async run({ $ }) { const { videoId, language, format, } = this; const response = await this.amara.getRawSubtitles({ $, videoId, language, format, }); $.export("$summary", "Successfully fetched raw subtitles"); return response; }, }; 

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
AmaraamaraappThis component uses the Amara app.
Teamteamstring

Filter by team (e.g. amplify in https://amara.org/en/teams/amplify/). Leave blank for videos that are in the public area.

Video IDvideoIdstringSelect a value from the drop down menu.
LanguagelanguagestringSelect a value from the drop down menu.
Subtitles formatformatstringSelect a value from the drop down menu.

Action Authentication

Amara uses API keys for authentication. When you connect your Amara account, Pipedream securely stores the keys so you can easily authenticate to Amara APIs in both code and no-code steps.

In order to get an API Key, create a user on the Amara website, then go to the account page. At the bottom of the page you will find a "Generate new key" button.

About Amara

The Amara Editor is an award-winning caption and subtitle editor that’s free to use! It’s fun and easy to learn, and encourages collaboration.

More Ways to Connect Amara + Hacker News

Add New Subtitles with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Add New Subtitles with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Add Video with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Add Video with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Create Subtitle Language with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Create Subtitle Language with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Delete Subtitles with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Delete Subtitles with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Delete Video with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Delete Video with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Fetch Raw Subtitles with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Fetch Subtitles Data with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Fetch Subtitles Data with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Get Subtitle Language Details with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Get Subtitle Language Details with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Get Team Details with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Get Team Details with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Get Video Details with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
Get Video Details with Amara API on New Stories by Keyword from Hacker News API
Hacker News + Amara
 
Try it
List Teams with Amara API on New Comments by Keyword from Hacker News API
Hacker News + Amara
 
Try it
New Stories by Keyword from the Hacker News API

Emit new stories that mention a specific keyword

 
Try it
New Comments by Keyword from the Hacker News API

Emit new comments that mention a specific keyword

 
Try it
Subtitles Published from the Amara API

Emit new event when subtitles have been published. See the docs here

 
Try it
Subtitles Unpublished from the Amara API

Emit new event when subtitles have been unpublished. See the docs here

 
Try it
Video Added from the Amara API

Emit new event when a video is added. See the docs here

 
Try it
Video Deleted from the Amara API

Emit new event when a video is deleted. See the docs here

 
Try it
Video Made Primary from the Amara API

Emit new event when a video has been made primary. See the docs here

 
Try it
Video Moved Project from the Amara API

Emit new event when a video has been moved from project. See the docs here

 
Try it
Add New Subtitles with the Amara API

Add new subtitles. See the docs here

 
Try it
Add Video with the Amara API

Add a video. See the docs here

 
Try it
Create Subtitle Language with the Amara API

Create a subtitle language. See the docs here

 
Try it
Delete Subtitles with the Amara API

Delete all subtitle versions for a language. See the docs here

 
Try it
Delete Video with the Amara API

Delete a video. In order to delete a video, it must be part of a team that you're an admin of. See the docs here

 
Try it
Fetch Raw Subtitles with the Amara API

Fetch raw subtitles. See the docs here

 
Try it
Fetch Subtitles Data with the Amara API

Fetch subtitles data. See the docs here

 
Try it
Get Subtitle Language Details with the Amara API

Get details on a single subtitle language. See the docs here

 
Try it
Get Team Details with the Amara API

Get details on a team. See the docs here

 
Try it
Get Video Details with the Amara API

Get video details. See the docs here

 
Try it
List Teams with the Amara API

List teams. See the docs here

 
Try it
List Video Subtitle Languages with the Amara API

Get a list of subtitle languages for a video. See the docs here

 
Try it
List Videos with the Amara API

List videos. See the docs here

 
Try it
Perform Action with the Amara API

Perform an action on the subtitles. This is equivalent to opening the editor, not changing the subtitles, and clicking an actions button. See the docs here

 
Try it
Update Subtitle Language with the Amara API

Update a subtitle language. See the docs here

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.