This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""fix the creation date of some documents in paperless-ngx""" | |
import datetime as dt | |
from urllib.parse import urljoin | |
import requests | |
class Session(requests.Session): | |
"""https://stackoverflow.com/a/51026159/7410886""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Script for generating an user API key for discourse. | |
Requirements: | |
pip install pycryptodomex | |
Usage: | |
python generate_api_key.py --help | |
python generate_api_key.py https://meta.discourse.org | |
""" |