n8n-nodes-transcriptfetch 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credentials/TranscriptFetchApi.credentials.js +1 -0
- package/dist/credentials/transcriptfetch.dark.svg +9 -0
- package/dist/credentials/transcriptfetch.svg +9 -0
- package/dist/nodes/TranscriptFetch/TranscriptFetch.node.js +21 -21
- package/dist/nodes/TranscriptFetch/transcriptfetch.dark.svg +9 -0
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ class TranscriptFetchApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'transcriptFetchApi';
|
|
7
7
|
this.displayName = 'TranscriptFetch API';
|
|
8
|
+
this.icon = { light: 'file:transcriptfetch.svg', dark: 'file:transcriptfetch.dark.svg' };
|
|
8
9
|
this.documentationUrl = 'https://transcriptfetch.com/docs';
|
|
9
10
|
this.properties = [
|
|
10
11
|
{
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80">
|
|
2
|
+
<rect width="80" height="80" rx="18" fill="#1e293b" />
|
|
3
|
+
<g fill="#f5f5f4">
|
|
4
|
+
<rect x="30" y="16" width="20" height="7" rx="3.5" />
|
|
5
|
+
<rect x="23" y="30" width="34" height="7" rx="3.5" />
|
|
6
|
+
<rect x="16" y="44" width="48" height="7" rx="3.5" />
|
|
7
|
+
<rect x="24" y="58" width="32" height="7" rx="3.5" />
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80">
|
|
2
|
+
<rect width="80" height="80" rx="18" fill="#0f172a" />
|
|
3
|
+
<g fill="#f5f5f4">
|
|
4
|
+
<rect x="30" y="16" width="20" height="7" rx="3.5" />
|
|
5
|
+
<rect x="23" y="30" width="34" height="7" rx="3.5" />
|
|
6
|
+
<rect x="16" y="44" width="48" height="7" rx="3.5" />
|
|
7
|
+
<rect x="24" y="58" width="32" height="7" rx="3.5" />
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -6,7 +6,7 @@ class TranscriptFetch {
|
|
|
6
6
|
this.description = {
|
|
7
7
|
displayName: 'TranscriptFetch',
|
|
8
8
|
name: 'transcriptFetch',
|
|
9
|
-
icon: 'file:transcriptfetch.svg',
|
|
9
|
+
icon: { light: 'file:transcriptfetch.svg', dark: 'file:transcriptfetch.dark.svg' },
|
|
10
10
|
group: ['transform'],
|
|
11
11
|
version: 1,
|
|
12
12
|
subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
|
|
@@ -50,13 +50,6 @@ class TranscriptFetch {
|
|
|
50
50
|
noDataExpression: true,
|
|
51
51
|
displayOptions: { show: { resource: ['transcript'] } },
|
|
52
52
|
options: [
|
|
53
|
-
{
|
|
54
|
-
name: 'Get Video Transcript',
|
|
55
|
-
value: 'getVideo',
|
|
56
|
-
action: 'Get a video transcript',
|
|
57
|
-
description: 'Fetch the transcript for a YouTube, TikTok, Instagram, X (Twitter), or Facebook video (text + timestamped segments)',
|
|
58
|
-
routing: { request: { method: 'POST', url: '/api/v1/transcripts/video' } },
|
|
59
|
-
},
|
|
60
53
|
{
|
|
61
54
|
name: 'Get Transcripts (Batch)',
|
|
62
55
|
value: 'batch',
|
|
@@ -64,6 +57,13 @@ class TranscriptFetch {
|
|
|
64
57
|
description: 'Fetch transcripts for up to 50 YouTube video IDs or URLs concurrently',
|
|
65
58
|
routing: { request: { method: 'POST', url: '/api/v1/transcripts/batch' } },
|
|
66
59
|
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Get Video Transcript',
|
|
62
|
+
value: 'getVideo',
|
|
63
|
+
action: 'Get a video transcript',
|
|
64
|
+
description: 'Fetch the transcript for a YouTube, TikTok, Instagram, X (Twitter), or Facebook video (text + timestamped segments)',
|
|
65
|
+
routing: { request: { method: 'POST', url: '/api/v1/transcripts/video' } },
|
|
66
|
+
},
|
|
67
67
|
{
|
|
68
68
|
name: 'List Channel Videos',
|
|
69
69
|
value: 'channel',
|
|
@@ -97,11 +97,11 @@ class TranscriptFetch {
|
|
|
97
97
|
displayOptions: { show: { resource: ['web'] } },
|
|
98
98
|
options: [
|
|
99
99
|
{
|
|
100
|
-
name: '
|
|
101
|
-
value: '
|
|
102
|
-
action: '
|
|
103
|
-
description: '
|
|
104
|
-
routing: { request: { method: 'POST', url: '/api/v1/web' } },
|
|
100
|
+
name: 'Crawl Site to Markdown',
|
|
101
|
+
value: 'crawl',
|
|
102
|
+
action: 'Crawl a site to markdown',
|
|
103
|
+
description: 'Breadth-first crawl from a start URL, returning clean Markdown for every readable page (up to 25 per call)',
|
|
104
|
+
routing: { request: { method: 'POST', url: '/api/v1/web/crawl' } },
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
name: 'Map Site Links',
|
|
@@ -111,11 +111,11 @@ class TranscriptFetch {
|
|
|
111
111
|
routing: { request: { method: 'POST', url: '/api/v1/web/map' } },
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
name: '
|
|
115
|
-
value: '
|
|
116
|
-
action: '
|
|
117
|
-
description: '
|
|
118
|
-
routing: { request: { method: 'POST', url: '/api/v1/web
|
|
114
|
+
name: 'Scrape Page to Markdown',
|
|
115
|
+
value: 'scrape',
|
|
116
|
+
action: 'Scrape a web page to markdown',
|
|
117
|
+
description: 'Fetch any http(s) URL and return the main readable content as clean Markdown',
|
|
118
|
+
routing: { request: { method: 'POST', url: '/api/v1/web' } },
|
|
119
119
|
},
|
|
120
120
|
],
|
|
121
121
|
default: 'scrape',
|
|
@@ -187,7 +187,7 @@ class TranscriptFetch {
|
|
|
187
187
|
name: 'limit',
|
|
188
188
|
type: 'number',
|
|
189
189
|
typeOptions: { minValue: 1 },
|
|
190
|
-
default:
|
|
190
|
+
default: 50,
|
|
191
191
|
description: 'Max number of results to return',
|
|
192
192
|
displayOptions: {
|
|
193
193
|
show: { resource: ['transcript'], operation: ['channel', 'playlist', 'search'] },
|
|
@@ -211,8 +211,8 @@ class TranscriptFetch {
|
|
|
211
211
|
name: 'limit',
|
|
212
212
|
type: 'number',
|
|
213
213
|
typeOptions: { minValue: 1 },
|
|
214
|
-
default:
|
|
215
|
-
description: 'Max number of
|
|
214
|
+
default: 50,
|
|
215
|
+
description: 'Max number of results to return',
|
|
216
216
|
displayOptions: { show: { resource: ['web'], operation: ['map', 'crawl'] } },
|
|
217
217
|
routing: { send: { type: 'body', property: 'limit' } },
|
|
218
218
|
},
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80">
|
|
2
|
+
<rect width="80" height="80" rx="18" fill="#1e293b" />
|
|
3
|
+
<g fill="#f5f5f4">
|
|
4
|
+
<rect x="30" y="16" width="20" height="7" rx="3.5" />
|
|
5
|
+
<rect x="23" y="30" width="34" height="7" rx="3.5" />
|
|
6
|
+
<rect x="16" y="44" width="48" height="7" rx="3.5" />
|
|
7
|
+
<rect x="24" y="58" width="32" height="7" rx="3.5" />
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-transcriptfetch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "n8n community node for TranscriptFetch - video transcripts from YouTube, TikTok, Instagram, X & Facebook, plus any web page as clean Markdown.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"main": "index.js",
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "tsc && node -e \"require('fs').cpSync('nodes/TranscriptFetch/
|
|
31
|
+
"build": "tsc && node -e \"const {cpSync}=require('fs');for(const f of ['transcriptfetch.svg','transcriptfetch.dark.svg']){cpSync('nodes/TranscriptFetch/'+f,'dist/nodes/TranscriptFetch/'+f);cpSync('nodes/TranscriptFetch/'+f,'dist/credentials/'+f);}\"",
|
|
32
32
|
"dev": "tsc --watch",
|
|
33
33
|
"lint": "npx @n8n/scan-community-package ."
|
|
34
34
|
},
|