videonut 1.2.7 → 1.3.0
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/README.md +272 -272
- package/USER_GUIDE.md +90 -90
- package/agents/core/eic.md +771 -771
- package/agents/creative/director.md +246 -246
- package/agents/creative/scriptwriter.md +207 -207
- package/agents/research/investigator.md +394 -394
- package/agents/technical/archivist.md +288 -288
- package/agents/technical/scavenger.md +247 -247
- package/bin/videonut.js +37 -21
- package/config.yaml +61 -61
- package/docs/scriptwriter.md +42 -42
- package/file_validator.py +186 -186
- package/memory/short_term/asset_manifest.md +64 -64
- package/memory/short_term/investigation_dossier.md +31 -31
- package/memory/short_term/master_script.md +51 -51
- package/package.json +61 -64
- package/requirements.txt +8 -8
- package/setup.js +33 -15
- package/tools/check_env.py +76 -76
- package/tools/downloaders/caption_reader.py +237 -237
- package/tools/downloaders/clip_grabber.py +82 -82
- package/tools/downloaders/image_grabber.py +105 -105
- package/tools/downloaders/pdf_reader.py +163 -163
- package/tools/downloaders/screenshotter.py +58 -58
- package/tools/downloaders/web_reader.py +69 -69
- package/tools/validators/link_checker.py +45 -45
- package/workflow_orchestrator.py +336 -336
- package/.claude/commands/archivist.toml +0 -12
- package/.claude/commands/director.toml +0 -12
- package/.claude/commands/eic.toml +0 -12
- package/.claude/commands/investigator.toml +0 -12
- package/.claude/commands/prompt.toml +0 -12
- package/.claude/commands/scavenger.toml +0 -12
- package/.claude/commands/scout.toml +0 -12
- package/.claude/commands/scriptwriter.toml +0 -12
- package/.claude/commands/seo.toml +0 -12
- package/.claude/commands/thumbnail.toml +0 -12
- package/.claude/commands/topic_scout.toml +0 -12
- package/.gemini/commands/archivist.toml +0 -12
- package/.gemini/commands/director.toml +0 -12
- package/.gemini/commands/eic.toml +0 -12
- package/.gemini/commands/investigator.toml +0 -12
- package/.gemini/commands/prompt.toml +0 -12
- package/.gemini/commands/scavenger.toml +0 -12
- package/.gemini/commands/scout.toml +0 -12
- package/.gemini/commands/scriptwriter.toml +0 -12
- package/.gemini/commands/seo.toml +0 -12
- package/.gemini/commands/thumbnail.toml +0 -12
- package/.gemini/commands/topic_scout.toml +0 -12
- package/.qwen/commands/archivist.toml +0 -12
- package/.qwen/commands/director.toml +0 -12
- package/.qwen/commands/eic.toml +0 -12
- package/.qwen/commands/investigator.toml +0 -12
- package/.qwen/commands/prompt.toml +0 -12
- package/.qwen/commands/scavenger.toml +0 -12
- package/.qwen/commands/scout.toml +0 -12
- package/.qwen/commands/scriptwriter.toml +0 -12
- package/.qwen/commands/seo.toml +0 -12
- package/.qwen/commands/thumbnail.toml +0 -12
- package/.qwen/commands/topic_scout.toml +0 -12
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import requests
|
|
2
|
-
import sys
|
|
3
|
-
import time
|
|
4
|
-
from random import uniform
|
|
5
|
-
|
|
6
|
-
def check_link(url):
|
|
7
|
-
# Add random delay to implement rate limiting
|
|
8
|
-
delay = uniform(1, 3) # Random delay between 1-3 seconds
|
|
9
|
-
print(f"Rate limiting: Waiting {delay:.2f} seconds before checking {url}", file=sys.stderr)
|
|
10
|
-
time.sleep(delay)
|
|
11
|
-
|
|
12
|
-
try:
|
|
13
|
-
# More realistic User-Agent to appear like a regular browser
|
|
14
|
-
headers = {
|
|
15
|
-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
|
|
16
|
-
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
|
17
|
-
'Accept-Language': 'en-US,en;q=0.5',
|
|
18
|
-
'Accept-Encoding': 'gzip, deflate',
|
|
19
|
-
'Connection': 'keep-alive',
|
|
20
|
-
'Upgrade-Insecure-Requests': '1',
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
response = requests.head(url, headers=headers, timeout=5, allow_redirects=True)
|
|
24
|
-
|
|
25
|
-
if response.status_code == 200:
|
|
26
|
-
return True, "OK"
|
|
27
|
-
else:
|
|
28
|
-
# Retry with GET if HEAD fails (some servers block HEAD)
|
|
29
|
-
response = requests.get(url, headers=headers, timeout=5, stream=True)
|
|
30
|
-
if response.status_code == 200:
|
|
31
|
-
return True, "OK"
|
|
32
|
-
return False, f"Status Code: {response.status_code}"
|
|
33
|
-
|
|
34
|
-
except requests.exceptions.RequestException as e:
|
|
35
|
-
return False, f"Request error: {str(e)}"
|
|
36
|
-
except Exception as e:
|
|
37
|
-
return False, f"General error: {str(e)}"
|
|
38
|
-
|
|
39
|
-
if __name__ == "__main__":
|
|
40
|
-
if len(sys.argv) > 1:
|
|
41
|
-
url = sys.argv[1]
|
|
42
|
-
success, msg = check_link(url)
|
|
43
|
-
print(f"{'VALID' if success else 'INVALID'}: {msg}")
|
|
44
|
-
else:
|
|
45
|
-
print("Usage: python link_checker.py [URL]")
|
|
1
|
+
import requests
|
|
2
|
+
import sys
|
|
3
|
+
import time
|
|
4
|
+
from random import uniform
|
|
5
|
+
|
|
6
|
+
def check_link(url):
|
|
7
|
+
# Add random delay to implement rate limiting
|
|
8
|
+
delay = uniform(1, 3) # Random delay between 1-3 seconds
|
|
9
|
+
print(f"Rate limiting: Waiting {delay:.2f} seconds before checking {url}", file=sys.stderr)
|
|
10
|
+
time.sleep(delay)
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
# More realistic User-Agent to appear like a regular browser
|
|
14
|
+
headers = {
|
|
15
|
+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
|
|
16
|
+
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
|
17
|
+
'Accept-Language': 'en-US,en;q=0.5',
|
|
18
|
+
'Accept-Encoding': 'gzip, deflate',
|
|
19
|
+
'Connection': 'keep-alive',
|
|
20
|
+
'Upgrade-Insecure-Requests': '1',
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
response = requests.head(url, headers=headers, timeout=5, allow_redirects=True)
|
|
24
|
+
|
|
25
|
+
if response.status_code == 200:
|
|
26
|
+
return True, "OK"
|
|
27
|
+
else:
|
|
28
|
+
# Retry with GET if HEAD fails (some servers block HEAD)
|
|
29
|
+
response = requests.get(url, headers=headers, timeout=5, stream=True)
|
|
30
|
+
if response.status_code == 200:
|
|
31
|
+
return True, "OK"
|
|
32
|
+
return False, f"Status Code: {response.status_code}"
|
|
33
|
+
|
|
34
|
+
except requests.exceptions.RequestException as e:
|
|
35
|
+
return False, f"Request error: {str(e)}"
|
|
36
|
+
except Exception as e:
|
|
37
|
+
return False, f"General error: {str(e)}"
|
|
38
|
+
|
|
39
|
+
if __name__ == "__main__":
|
|
40
|
+
if len(sys.argv) > 1:
|
|
41
|
+
url = sys.argv[1]
|
|
42
|
+
success, msg = check_link(url)
|
|
43
|
+
print(f"{'VALID' if success else 'INVALID'}: {msg}")
|
|
44
|
+
else:
|
|
45
|
+
print("Usage: python link_checker.py [URL]")
|