Spaces:
Paused
Paused
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")
|