derat / nitter-rss-proxy

Moved to codeberg.org/derat/nitter-rss-proxy
https://codeberg.org/derat/nitter-rss-proxy
BSD 3-Clause "New" or "Revised" License
11 stars 3 forks source link

rss format difference with nitter rss results #10

Closed sajiljosephs closed 1 year ago

sajiljosephs commented 1 year ago

rss from nitter:

The Exp 68 crew started the new week investigating astrobiology and keeping up with cargo operations and equipment maintenance. https://go.nasa.gov/3n9KoOA

dc:creator@Space_Station</dc:creator> The Exp 68 crew started the new week investigating astrobiology and keeping up with cargo operations and equipment maintenance. go.nasa.gov/3n9KoOA

]]> Mon, 20 Mar 2023 22:02:01 GMT https://twitter.com/Space_Station/status/1637937566308528128#m https://twitter.com/Space_Station/status/1637937566308528128#m rss from nitter-rss-proxy

The Exp 68 crew started the new week investigating astrobiology and keeping up …

https://twitter.com/Space_Station/status/1637937566308528128

The Exp 68 crew started the new week investigating astrobiology and keeping up with cargo operations and equipment maintenance. content:encodedThe Exp 68 crew started the new week investigating astrobiology and keeping up with cargo operations and equipment maintenance. [go.nasa.gov/3n9KoOA](https://go.nasa.gov/3n9KoOA) ]]> @Space_Station https://twitter.com/Space_Station/status/1637937566308528128 Mon, 20 Mar 2023 22:02:01 +0000 There are many extra characters while rendering the results. I tried with all the 3, "atom", "json", "rss" and its not as same as nitter. Can we have the same results as nitter rss gives ?

sajiljosephs commented 1 year ago

This is what visible from nitter rss: `<?xml version="1.0" encoding="UTF-8"?>

` May be the version differs.
derat commented 1 year ago

If you change this code:

https://github.com/derat/nitter-rss-proxy/blob/233cf821b868ebdde690d59078d5f499be9623c4/main.go#L177-L180

to this:

w.Write(b)

does it do what you want?

If so, I can add a flag to request this behavior.

If this is really what you want, I'm not sure why you're using this proxy instead of calling Nitter directly. If you describe your use case so I can understand what you're trying to do, I may be able to suggest better alternatives.

derat commented 1 year ago

No response, so closing.