3 ms·
I've literally just spent a couple of hours integrating Nitter.net's RSS feed into my custom feed reader. Why a couple of hours? Because Nitter for some reason
by mattowen_uk 5y ago
I've literally just spent a couple of hours integrating Nitter.net's RSS feed into my custom feed reader. Why a couple of hours? Because Nitter for some reason returns a 404 header instead of 200 when it gives you the RSS feed data.
Consequently stuff like PHPs file_get_contents() and curl_exec() return absolutely nothing... took me ages (via trying to shell out to curl, and then back to using the lib again) before I realised it wasn't actually the 404 error cause the issue, but that curl (and libcurl) on my system doesn't like Nitters SSL cert, which then led me to CURLOPT_SSL_VERIFYPEER to override it. Frustrating, but educational none-the-less.
I'm using the search filter "(from:$username) -filter:replies" to get just the tweets I want.
--
https://nitter.net https://nitter.net
- icehawk 5y agoI've found that only happens when you're not doing GET: curl https://nitter.1d4.us/newsycombinator/rss https://nitter.1d4.us/newsycombinator/rss 2620::2218 - - [24/Aug/2021:11:32:56 -0400] "GET /newsycombinator/rss HTTP/2.0" 200 12985 "-" "curl/7.64.1" vs curl --head https://nitter.1d4.us/newsycombinator/rss https://nitter.1d4.us/newsycombinator/rss 2620::2218 - - [24/Aug/2021:11:33:57 -0400] "HEAD /newsycombinator/rss HTTP/2.0" 404 0 "-" "curl/7.64.1"
- mattowen_uk 5y agoAh I was using --head (actually -I) as part of my debugging. It's still not correct though is it? (I was thinking about opening an issue on the github repo)
- 0-_-0 5y agoBy the way, the Feedbro RSS reader lets you subscribe to twitter accounts like an RSS feed: https://addons.mozilla.org/en-GB/firefox/addon/feedbroreader/ https://addons.mozilla.org/en-GB/firefox/addon/feedbroreader...