Substack supplies an RSS feed for each site, but there is no information included within that would help discern whether a post is paid or public. Filters based on searches such as "Read more" create too many false positives and are unreliable. After playing with this for quite a while, I realized that if you scrape the site yourself you can create a flag for paid articles and have FreshRSS mark anything with the flag as read. It only works with FreshRSS version 1.25.0-dev or above, since there was previously an issue with flags being ignored during scrape operations. I've included example code for Many Such Cases, written by Magdalene J. Taylor. I highly recommend that you subscribe and follow her writing, as she is tremendous! All you should need to change is the title and URL. As a bonus, this scraper also supplies a larger thumbnail image than the official feed. Substack RSS feed (with filter for paid articles)
HTML I wanted a bash solution to convert Instagram media ID numbers to the shortcode they use for their posts. This seems to work pretty well so I'll share it here in case anyone needs it. Big thanks to mokoshalb's instagramid.php , which helped me figure out how to do this. media_id_to_shortcode () { media_id=$1 alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" shortcode= binary_media_id=$( echo "obase=2;$media_id" | bc ) pad=$(( 6 - ( ${#binary_media_id} % 6 ) )) if [[ $pad == 6 ]]; then pad=0 fi len=$(( ${#binary_media_id} + $pad )) binary_media_id=$(printf "%0*s\n" "$len" $binary_media_id) for (( i=0 ; i<(( $len - 1 )); i+=6 )); do chunk=${binary_media_id:$i:6} digit="$((2#$chunk))" shortcode="$shortcode${alphabet:$digit:1}" done echo "$shortcode" }