This repository has been archived on 2021-11-29. You can view files and clone it, but cannot push or open issues or pull requests.
rsstube-bash-old/scripts/url-extractors/nitter

17 lines
246 B
Plaintext

determine_protocol
get_domain
instance=${protocol}${domain}
# get username
username=${url##*//}
username=${username#*/}
username=${username%%/*}
# get feed if able
if [[ -n $username ]]
then
rss="${instance}/${username}/rss"
url_ext=$rss
fi