Compare commits
No commits in common. "1f625787943e9a25a7312f16d9457db013ad153a" and "1844b5b055deef19626ac4d6fc511020dfe364d7" have entirely different histories.
1f62578794
...
1844b5b055
|
@ -41,7 +41,6 @@ with open(sys.argv[1]) as file, open(sys.argv[2], 'w+') as out:
|
|||
print(text)
|
||||
out.write(text)
|
||||
continue
|
||||
rss_bridge = urlparse(feedurl).hostname.startswith('rss.')
|
||||
try:
|
||||
with urlopen(Request(feedurl, headers={'User-Agent': "stop being so fucking obsessed that i'm using urllib ffs"}), timeout=60) as resp:
|
||||
if resp.status != 200:
|
||||
|
@ -69,11 +68,7 @@ with open(sys.argv[1]) as file, open(sys.argv[2], 'w+') as out:
|
|||
url = input().strip() or url
|
||||
else:
|
||||
url = url.text or url.attrib['href']
|
||||
text = f'<li><b><a href="{html.escape(urljoin(feedurl, url))}">{html.escape(find_ignore_ns(channel, "title").text)}</a> (<a href="{html.escape(feedurl)}">'
|
||||
if rss_bridge:
|
||||
text += 'auto-generated '
|
||||
text += 'feed</a>)'
|
||||
if not rss_bridge:
|
||||
text = f'<li><b><a href="{html.escape(urljoin(feedurl, url))}">{html.escape(find_ignore_ns(channel, "title").text)}</a> (<a href="{html.escape(feedurl)}">feed</a>)'
|
||||
desc = find_ignore_ns(channel, 'description')
|
||||
if desc is not None and desc.text:
|
||||
if desc := desc.text.strip():
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
<li><b><a href="https://80x24.net">80x24</a> (<a href="https://80x24.net/rss.xml">feed</a>):</b> Thoughts on the bits and bytes of life</li>
|
||||
<li><b><a href="https://www.happyassassin.net/">AdamW on Linux and more</a> (<a href="https://www.happyassassin.net/feed.atom">feed</a>)</b></li>
|
||||
<li><b><a href="http://feedpress.superfeedr.com/">Allen Pike</a> (<a href="https://feeds.allenpike.com/feed/">feed</a>)</b></li>
|
||||
<li><b><a href="https://guzey.com/archive/">Archive - Alexey Guzey</a> (<a href="https://rss.zangetsu.kaizoku.cyou/?action=display&bridge=XPath&url=https%3A%2F%2Fguzey.com%2Farchive%2F&item=%2F%2Ful%2Fli%5Bstrong%5D%5Ba%5D&title=.%2Fa&content=&uri=.%2Fa%2F%40href&author=&timestamp=concat%28.%2Fpreceding%3A%3Ah2%5B1%5D%2C+%22-%22%2C+.%2Fstrong%29&enclosures=&categories=&format=Mrss">auto-generated feed</a>)</li>
|
||||
<li><b><a href="http://lucumr.pocoo.org/">Armin Ronacher's Thoughts and Writings</a> (<a href="https://lucumr.pocoo.org/feed.atom">feed</a>):</b> Armin Ronacher's personal blog about programming, games and random thoughts that come to his mind.</li>
|
||||
<li><b><a href="https://axesslab.com">Axess Lab</a> (<a href="https://axesslab.com/feed/">feed</a>):</b> Digital accessibility consultants, reviews and development</li>
|
||||
<li><b><a href="https://belaycpp.com">Belay the C++</a> (<a href="https://belaycpp.com/feed/">feed</a>):</b> A weekly blog talking about (usually bad) practices in C++</li>
|
||||
|
@ -110,7 +109,6 @@
|
|||
<li><b><a href="https://www.vidarholen.net/contents/blog">Vidar's Blog</a> (<a href="https://www.vidarholen.net/contents/blog/?feed=rss2">feed</a>):</b> GNU, Linux and technology in general</li>
|
||||
<li><b><a href="https://www.whizzy.org/">whizzy.org</a> (<a href="https://www.whizzy.org/feed.xml">feed</a>):</b> whizzy.org RSS feed</li>
|
||||
<li><b><a href="https://rachelbythebay.com/w/">Writing - rachelbythebay</a> (<a href="https://rachelbythebay.com/w/atom.xml">feed</a>)</b></li>
|
||||
<li><b><a href="https://milan.cvitkovic.net/writing/">Writings on Milan Cvitkovic</a> (<a href="https://milan.cvitkovic.net/writing/index.xml">feed</a>):</b> Recent content in Writings on Milan Cvitkovic</li>
|
||||
<li><b><a href="https://xeiaso.net/blog">Xe's Blog</a> (<a href="https://xeiaso.net/blog.rss">feed</a>):</b> Tech, philosophy and more</li>
|
||||
<li><b><a href="https://zmatt.net">zmatt.net</a> (<a href="https://zmatt.net/feed/">feed</a>)</b></li>
|
||||
<li><b><a href="https://eta.st/">η (eta)</a> (<a href="https://eta.st/feed.xml">feed</a>):</b> random mutterings of an insane nature</li>
|
||||
|
|
Loading…
Reference in New Issue