- commit
- 6703ee3
- parent
- 8708a29
- author
- xxwhirlpool
- date
- 2026-04-12 22:32:32 -0400 EDT
plex token script
2 files changed,
+33,
-0
+11,
-0
1@@ -39,3 +39,14 @@ cover.py [TOKEN]
2 ```bash
3 m3u.py [TOKEN]
4 ```
5+
6+## token_plex.py
7+
8+- get the plex token
9+- makes the other scripts easier lol
10+
11+### usage
12+
13+```bash
14+token.py # follow prompts
15+```
+22,
-0
1@@ -0,0 +1,22 @@
2+#!/usr/bin/env -S uv run --script
3+# /// script
4+# requires-python = ">=3.14"
5+# dependencies = [
6+# "plexapi>=4.18.1",
7+# ]
8+# ///
9+
10+# USAGE: token_plex.py [TOKEN]
11+#
12+# get the temporary plex token
13+
14+from plexapi.myplex import MyPlexAccount
15+import getpass
16+import sys
17+
18+u = input("plex username: ")
19+p = getpass.getpass("plex password: ")
20+
21+acc = MyPlexAccount(u, p)
22+
23+print("\n" + acc.authenticationToken)