-
-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functionality to fetch guest accounts on demand #1116
base: guest_accounts
Are you sure you want to change the base?
Conversation
nitter.example.conf
Outdated
# Instead of guest_accounts.json, fetch guest accounts from an external URL. | ||
# Nitter will re-fetch accounts if it runs out of valid ones. | ||
guestAccountsUrl = "" # https://example.com/download | ||
guestAccountsHost = "" # defaults to nitter's hostname | ||
guestAccountsKey = "" # a random string that will be used as a secret to authenticate against the URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put this into a new section, and also remove the tokenCount
+ comment above since that's no longer needed. This section can be used for other variables in the future like whether to try fetching accounts by itself, if so which proxy/proxies to use, jsonl file location, and some other tweaks to the auth handling.
# Instead of guest_accounts.json, fetch guest accounts from an external URL. | |
# Nitter will re-fetch accounts if it runs out of valid ones. | |
guestAccountsUrl = "" # https://example.com/download | |
guestAccountsHost = "" # defaults to nitter's hostname | |
guestAccountsKey = "" # a random string that will be used as a secret to authenticate against the URL | |
# Instead of guest_accounts.jsonl, fetch guest accounts from an external URL. | |
# Nitter will re-fetch accounts if it runs out of valid ones. | |
[GuestAccounts] | |
usePool = false # enable fetching accounts from external pool | |
poolUrl = "" # https://example.com/download | |
poolAuth = "" # random secret string for authentication | |
poolId = "" # defaults to nitter's hostname | |
poolAmount = 10000 # amount of accounts to request from pool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
poolAmount = 10000 # amount of accounts to request from pool
I did not implement this. twitterminator does not allow you to negotiate the count, not in public api...
some features that are not implemented:
|
Add a basic way to automatically fetch guest accounts from an external URL if the internal stash is empty.
for example:
If those settings are configured, guest_accounts.json does not need to be present.
this serves the hashed Key under
/.well-known/nitter-auth-sha256
, while twitterminator expects it under/.twitterminator.txt
. If this approach is accepted I'll update twitterminator to look for the new path too.