-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_final.js
More file actions
50 lines (43 loc) · 1.9 KB
/
Copy pathverify_final.js
File metadata and controls
50 lines (43 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({
token: process.env.APIFY_TOKEN,
});
const actors = [
{ name: 'red.cars/pinterest-board-scraper', id: 'BmGaMvV4GWIcZNcxs' },
{ name: 'red.cars/mastodon-federation-intelligence-pro', id: '5nhhpFDSiF6GHkeBv' },
{ name: 'red.cars/devto-scraper-pro', id: '9NMr859Bzw6jYDZru' }
];
async function verify() {
for (const actorInfo of actors) {
console.log(`\n🔍 Checking live README for ${actorInfo.name}...`);
try {
const actor = await client.actor(actorInfo.name).get();
if (!actor) {
console.log(`❌ Actor ${actorInfo.name} not found by name.`);
continue;
}
const version = await client.actor(actor.id).version('1.0').get();
if (!version || !version.sourceFiles) {
console.log(`❌ Version 1.0 or source files not found.`);
continue;
}
const readmeFile = version.sourceFiles.find(f => f.name === 'README.md' || f.name === '.actor/README.md');
if (readmeFile) {
console.log(`✅ Found live README.md (${readmeFile.name})`);
const content = readmeFile.content;
const lines = content.split('\n').slice(0, 5);
lines.forEach((line, i) => console.log(`${i + 1}: ${line}`));
if (content.includes('Status: Active and Verified (March 19, 2026)')) {
console.log('✨ SUCCESS: Status line found!');
} else {
console.log('⚠️ FAILURE: Status line NOT found in live file.');
}
} else {
console.log(`❌ README.md not found in live source files.`);
}
} catch (err) {
console.error(`💥 Error:`, err.message);
}
}
}
verify();