This code has mainly been tested on the following platforms:
- Windows 10, Python 3.7.0 with PyQt 5.11 (x64)
- Linux/Debian 9, Python 3.5.3 with PyQt 5.10 (x64)
There's currently issues with memory leaks that leads to memory use above x86 python limit, causing it to crash.
- Python 3 (3.5+ is recommended)
- The pip package management tool
Other requirements:
Python 3.6 and above:
pip install -r requirements.txt
Python 3.5 and below:
pip install -r requirements-py35.txt
OAuth is required for access to your own youtube account (like retrieving subscriptions list). For anything else API keys is usually what gets used.
Caution: This option is prone to daily API quota limit issues, option B is highly encouraged.
- Rename
sane_yt_subfeed/resources/keys_public.json
tokeys.json
- Rename
sane_yt_subfeed/resources/client_secret_public.json
toclient_secret.json
Useful ref: https://developers.google.com/youtube/v3/getting-started
- https://console.developers.google.com/apis/dashboard
- Click the drop-down next to the "Google APIs" logo in the banner area.
- Click "New Project".
- Fill in forms and create.
- Click the (presumably blue) "Enable APIs and services" text.
- Search for, select and enable "YouTube Data API v3"
- Go to "Credentials" and create credentials
8a. Create API Key
8b. Copy the key into
sane_yt_subfeed/resources/keys.json.sample
and rename itkeys.json
9a. Create OAuth Client ID 9b. Configure consent screen, usage type is "other". 9c. Download json and save it assane_yt_subfeed/resources/client_secret.json
If it's the first time run: pip install -e .
(required for non-Windows OS due to a pesky python path bug)
Afterwards you can launch it with: python -m sane_yt_subfeed
-
Add application to path (run it again, even if you've run it in the past):
pip install -e .
-
Generate migration script:
alembic revision --autogenerate -m "migration msg"
-
Migrate database:
alembic upgrade head