@crawlee/utils 3.0.5-beta.7 → 3.0.5-beta.71

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.
@@ -0,0 +1,384 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseOpenGraph = void 0;
4
+ const cheerio_1 = require("cheerio");
5
+ ;
6
+ /**
7
+ * To be used with the spread operator. Ensures that the item is defined, and is not empty.
8
+ *
9
+ * @param key The key for the item to have in the object
10
+ * @param item The item to assign to the key.
11
+ * @returns Either an empty object or an object with the content provided.
12
+ */
13
+ const optionalSpread = (key, item) => (item !== undefined && !!Object.values(item)?.length ? { [key]: item } : {});
14
+ const OPEN_GRAPH_PROPERTIES = [
15
+ {
16
+ name: 'og:title',
17
+ outputName: 'title',
18
+ children: [],
19
+ },
20
+ {
21
+ name: 'og:type',
22
+ outputName: 'type',
23
+ children: [],
24
+ },
25
+ {
26
+ name: 'og:image',
27
+ outputName: 'image',
28
+ children: [
29
+ {
30
+ name: 'og:image:url',
31
+ outputName: 'url',
32
+ children: [],
33
+ },
34
+ {
35
+ name: 'og:image:secure_url',
36
+ outputName: 'secureUrl',
37
+ children: [],
38
+ },
39
+ {
40
+ name: 'og:image:type',
41
+ outputName: 'type',
42
+ children: [],
43
+ },
44
+ {
45
+ name: 'og:image:width',
46
+ outputName: 'width',
47
+ children: [],
48
+ },
49
+ {
50
+ name: 'og:image:height',
51
+ outputName: 'height',
52
+ children: [],
53
+ },
54
+ {
55
+ name: 'og:image:alt',
56
+ outputName: 'alt',
57
+ children: [],
58
+ },
59
+ ],
60
+ },
61
+ {
62
+ name: 'og:url',
63
+ outputName: 'url',
64
+ children: [],
65
+ },
66
+ {
67
+ name: 'og:audio',
68
+ outputName: 'audio',
69
+ children: [
70
+ {
71
+ name: 'og:audio:url',
72
+ outputName: 'url',
73
+ children: [],
74
+ },
75
+ {
76
+ name: 'og:audio:secure_url',
77
+ outputName: 'secureUrl',
78
+ children: [],
79
+ },
80
+ {
81
+ name: 'og:audio:type',
82
+ outputName: 'type',
83
+ children: [],
84
+ },
85
+ ],
86
+ },
87
+ {
88
+ name: 'og:description',
89
+ outputName: 'description',
90
+ children: [],
91
+ },
92
+ {
93
+ name: 'og:determiner',
94
+ outputName: 'determiner',
95
+ children: [],
96
+ },
97
+ {
98
+ name: 'og:locale',
99
+ outputName: 'locale',
100
+ children: [
101
+ {
102
+ name: 'og:locale:alternate',
103
+ outputName: 'alternate',
104
+ children: [],
105
+ },
106
+ ],
107
+ },
108
+ {
109
+ name: 'og:site_name',
110
+ outputName: 'siteName',
111
+ children: [],
112
+ },
113
+ {
114
+ name: 'og:video',
115
+ outputName: 'video',
116
+ children: [
117
+ {
118
+ name: 'og:video:url',
119
+ outputName: 'url',
120
+ children: [],
121
+ },
122
+ {
123
+ name: 'og:video:secure_url',
124
+ outputName: 'secureUrl',
125
+ children: [],
126
+ },
127
+ {
128
+ name: 'og:video:type',
129
+ outputName: 'type',
130
+ children: [],
131
+ },
132
+ {
133
+ name: 'og:video:width',
134
+ outputName: 'width',
135
+ children: [],
136
+ },
137
+ {
138
+ name: 'og:video:height',
139
+ outputName: 'height',
140
+ children: [],
141
+ },
142
+ {
143
+ name: 'og:video:alt',
144
+ outputName: 'alt',
145
+ children: [],
146
+ },
147
+ ],
148
+ },
149
+ // The properties below aren't prefixed with "og".
150
+ // Part of the reason the properties have been hardcoded is because not all OpenGraph properties start with "og".
151
+ // Especially the newer ones that extend "og:type".
152
+ {
153
+ name: 'video',
154
+ outputName: 'videoInfo',
155
+ children: [
156
+ {
157
+ name: 'video:actor',
158
+ outputName: 'actor',
159
+ children: [
160
+ {
161
+ name: 'video:actor:role',
162
+ outputName: 'role',
163
+ children: [],
164
+ },
165
+ ],
166
+ },
167
+ {
168
+ name: 'video:director',
169
+ outputName: 'director',
170
+ children: [],
171
+ },
172
+ {
173
+ name: 'video:writer',
174
+ outputName: 'writer',
175
+ children: [],
176
+ },
177
+ {
178
+ name: 'video:duration',
179
+ outputName: 'duration',
180
+ children: [],
181
+ },
182
+ {
183
+ name: 'video:release_date',
184
+ outputName: 'releaseDate',
185
+ children: [],
186
+ },
187
+ {
188
+ name: 'video:tag',
189
+ outputName: 'tag',
190
+ children: [],
191
+ },
192
+ {
193
+ name: 'video:series',
194
+ outputName: 'series',
195
+ children: [],
196
+ },
197
+ ],
198
+ },
199
+ {
200
+ name: 'music',
201
+ outputName: 'musicInfo',
202
+ children: [
203
+ {
204
+ name: 'music:duration',
205
+ outputName: 'duration',
206
+ children: [],
207
+ },
208
+ {
209
+ name: 'music:album',
210
+ outputName: 'album',
211
+ children: [
212
+ {
213
+ name: 'music:album:disc',
214
+ outputName: 'disc',
215
+ children: [],
216
+ },
217
+ {
218
+ name: 'music:album:track',
219
+ outputName: 'track',
220
+ children: [],
221
+ },
222
+ ],
223
+ },
224
+ {
225
+ name: 'music:musician',
226
+ outputName: 'musician',
227
+ children: [],
228
+ },
229
+ {
230
+ name: 'music:song',
231
+ outputName: 'song',
232
+ children: [
233
+ {
234
+ name: 'music:song:disc',
235
+ outputName: 'disc',
236
+ children: [],
237
+ },
238
+ {
239
+ name: 'music:song:track',
240
+ outputName: 'track',
241
+ children: [],
242
+ },
243
+ ],
244
+ },
245
+ {
246
+ name: 'music:release_date',
247
+ outputName: 'releaseDate',
248
+ children: [],
249
+ },
250
+ {
251
+ name: 'music:creator',
252
+ outputName: 'creator',
253
+ children: [],
254
+ },
255
+ ],
256
+ },
257
+ {
258
+ name: 'article',
259
+ outputName: 'articleInfo',
260
+ children: [
261
+ {
262
+ name: 'music:published_time',
263
+ outputName: 'publishedTime',
264
+ children: [],
265
+ },
266
+ {
267
+ name: 'music:modified_time',
268
+ outputName: 'modifiedTime',
269
+ children: [],
270
+ },
271
+ {
272
+ name: 'music:expiration_time',
273
+ outputName: 'expirationTime',
274
+ children: [],
275
+ },
276
+ {
277
+ name: 'music:author',
278
+ outputName: 'author',
279
+ children: [],
280
+ },
281
+ {
282
+ name: 'music:section',
283
+ outputName: 'section',
284
+ children: [],
285
+ },
286
+ {
287
+ name: 'music:tag',
288
+ outputName: 'tag',
289
+ children: [],
290
+ },
291
+ ],
292
+ },
293
+ {
294
+ name: 'book',
295
+ outputName: 'bookInfo',
296
+ children: [
297
+ {
298
+ name: 'book:author',
299
+ outputName: 'author',
300
+ children: [],
301
+ },
302
+ {
303
+ name: 'book:isbn',
304
+ outputName: 'isbn',
305
+ children: [],
306
+ },
307
+ {
308
+ name: 'book:release_date',
309
+ outputName: 'releaseDate',
310
+ children: [],
311
+ },
312
+ {
313
+ name: 'book:tag',
314
+ outputName: 'tag',
315
+ children: [],
316
+ },
317
+ ],
318
+ },
319
+ {
320
+ name: 'profile',
321
+ outputName: 'profileInfo',
322
+ children: [
323
+ {
324
+ name: 'profile:first_name',
325
+ outputName: 'firstName',
326
+ children: [],
327
+ },
328
+ {
329
+ name: 'profile:last_name',
330
+ outputName: 'lastName',
331
+ children: [],
332
+ },
333
+ {
334
+ name: 'profile:username',
335
+ outputName: 'username',
336
+ children: [],
337
+ },
338
+ {
339
+ name: 'profile:gender',
340
+ outputName: 'gender',
341
+ children: [],
342
+ },
343
+ ],
344
+ },
345
+ ];
346
+ const makeOpenGraphSelector = (name) => `meta[property="${name}"]`;
347
+ const parseOpenGraphProperty = (property, $) => {
348
+ // Some OpenGraph properties can be added multiple times, such as with video:actor. We must handle this case.
349
+ const values = [...$(makeOpenGraphSelector(property.name))].map((elem) => $(elem).attr('content'));
350
+ // If there is more than 1 item, keep it a an array. Otherwise, return just the first value.
351
+ const content = values.length <= 1 ? values[0] : values;
352
+ // If the property has no children, just return its value immediately.
353
+ if (!property.children.length)
354
+ return content;
355
+ // Otherwise, return an object with the values for the property, along with the values for its children.
356
+ return {
357
+ // We do this, because for example, there can be a value under og:image which should still be parsed,
358
+ // but there can also be child properties such as og:image:url or og:image:size
359
+ // "Value" is appended to the end of the property name to make it more clear, and to prevent things such
360
+ // as `videoInfo.actor.actor` to grab the actor's name.
361
+ ...optionalSpread(`${property.outputName}Value`, content),
362
+ ...property.children.reduce((acc, curr) => {
363
+ const parsed = parseOpenGraphProperty(curr, $);
364
+ if (parsed === undefined)
365
+ return acc;
366
+ return {
367
+ ...acc,
368
+ ...optionalSpread(curr.outputName, parseOpenGraphProperty(curr, $)),
369
+ };
370
+ }, {}),
371
+ };
372
+ };
373
+ function parseOpenGraph(item, additionalProperties) {
374
+ const $ = typeof item === 'string' ? (0, cheerio_1.load)(item) : item;
375
+ return [...(additionalProperties || []), ...OPEN_GRAPH_PROPERTIES].reduce((acc, curr) => {
376
+ return {
377
+ ...acc,
378
+ ...optionalSpread(curr.outputName, parseOpenGraphProperty(curr, $)),
379
+ };
380
+ }, {});
381
+ }
382
+ exports.parseOpenGraph = parseOpenGraph;
383
+ ;
384
+ //# sourceMappingURL=open_graph_parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open_graph_parser.js","sourceRoot":"","sources":["../../src/internals/open_graph_parser.ts"],"names":[],"mappings":";;;AAEA,qCAA+B;AAM9B,CAAC;AAIF;;;;;;GAMG;AACH,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,IAAS,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAEhI,MAAM,qBAAqB,GAAwB;IAC/C;QACI,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE,EAAE;KACf;IACD;QACI,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,MAAM;QAClB,QAAQ,EAAE,EAAE;KACf;IACD;QACI,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE;YACN;gBACI,IAAI,EAAE,cAAc;gBACpB,U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AC/C,IAAI,MAAM,KAAK,SAAS;gBAAE,OAAO,GAAG,CAAC;YAErC,OAAO;gBACH,GAAG,GAAG;gBACN,GAAG,cAAc,CAAC,IAAI,CAAC,UAAU,EAAE,sBAAsB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACtE,CAAC;QACN,CAAC,EAAE,EAAqC,CAAC;KAC5C,CAAC;AACN,CAAC,CAAC;AAYF,SAAgB,cAAc,CAAC,IAAyB,EAAE,oBAA0C;IAChG,MAAM,CAAC,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEvD,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,EAAE,CAAC,EAAE,GAAG,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACpF,OAAO;YACH,GAAG,GAAG;YACN,GAAG,cAAc,CAAC,IAAI,CAAC,UAAU,EAAE,sBAAsB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACtE,CAAC;IACN,CAAC,EAAE,EAAiC,CAAC,CAAC;AAC1C,CAAC;AATD,wCASC;AAAA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/utils",
3
- "version": "3.0.5-beta.7",
3
+ "version": "3.0.5-beta.71",
4
4
  "description": "A set of shared utilities that can be used by crawlers",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "@apify/log": "^2.0.0",
51
51
  "@apify/ps-tree": "^1.1.4",
52
- "@crawlee/types": "^3.0.5-beta.7",
52
+ "@crawlee/types": "^3.0.5-beta.71",
53
53
  "cheerio": "1.0.0-rc.12",
54
54
  "got-scraping": "^3.2.9",
55
55
  "tslib": "^2.4.0"