File size: 1,788 Bytes
34367da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/usr/bin/env python3
"""
Quick Scribd Cookie Setup
"""
import json
from pathlib import Path

print("""
╔══════════════════════════════════════════════════════════════════╗
β•‘  πŸͺ SCRIBD COOKIE SETUP                                          β•‘
╠══════════════════════════════════════════════════════════════════╣
β•‘  I Chrome DevTools (F12 β†’ Application β†’ Cookies β†’ scribd.com):   β•‘
β•‘                                                                   β•‘
║  Find DISSE cookies og kopier værdierne:                         ║
β•‘    β€’ _scribd_session  (lang streng med tal og bogstaver)         β•‘
║    ‒ _scribd_expire   (dato-lignende værdi)                      ║
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
""")

session = input("Paste _scribd_session værdi: ").strip()
expire = input("Paste _scribd_expire værdi (eller tryk Enter): ").strip()

if not session:
    print("❌ Session cookie er pΓ₯krΓ¦vet!")
    exit(1)

cookie_data = {
    "_scribd_session": session,
    "_scribd_expire": expire or ""
}

output_dir = Path("data/scribd_harvest")
output_dir.mkdir(parents=True, exist_ok=True)
cookie_file = output_dir / "scribd_cookies.json"

with open(cookie_file, 'w') as f:
    json.dump(cookie_data, f, indent=2)

print(f"\nβœ… Cookies gemt til: {cookie_file}")
print("πŸš€ KΓΈr nu: python scribd_harvester_v2.py")