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