mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-23 04:03:05 +00:00
12 lines
No EOL
315 B
Python
12 lines
No EOL
315 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Plex-GetToken is a simple method to retrieve a Plex account token.
|
|
"""
|
|
from plexapi.myplex import MyPlexAccount
|
|
|
|
username = input("Plex username: ")
|
|
password = input("Plex password: ")
|
|
|
|
account = MyPlexAccount(username, password)
|
|
print(account.authenticationToken) |