mirror of
https://github.com/fmap/muflax65ngodyewp.onion
synced 2024-06-02 06:46:50 +02:00
feed bug, of course
This commit is contained in:
parent
1155c3c02b
commit
d7517e177e
|
@ -3,27 +3,27 @@
|
|||
All major changes on the site
|
||||
=============================
|
||||
|
||||
- 2010/04/26: Reworked the whole site, turning it into a proper site instead
|
||||
of a rambling blog.
|
||||
|
||||
Most old content is only reorganized, but otherwise mostly the same, besides a
|
||||
few corrections. However, some stuff needs to be rewritten or updated. I
|
||||
already made some major modifications to [Letting Go of Music], adding an
|
||||
*Argument from Spirituality*, a *Safer Use* section and changed my position
|
||||
somewhat.
|
||||
- 2010/04/26: Reworked the whole site, turning it into a proper site instead
|
||||
of a rambling blog.
|
||||
|
||||
Most old content is only reorganized, but otherwise mostly the same, besides a
|
||||
few corrections. However, some stuff needs to be rewritten or updated. I
|
||||
already made some major modifications to [Letting Go of Music], adding an
|
||||
*Argument from Spirituality*, a *Safer Use* section and changed my position
|
||||
somewhat.
|
||||
|
||||
My [Rants] have now become an official part of the site (the internet wouldn't
|
||||
work without unnecessarily strong opinions and emotions).
|
||||
|
||||
I rewrote and greatly extended my thoughts on Dennett's [Consciousness
|
||||
Explained]. Yes, I'm finally done with the book.
|
||||
My [Rants] have now become an official part of the site (the internet wouldn't
|
||||
work without unnecessarily strong opinions and emotions).
|
||||
|
||||
I rewrote and greatly extended my thoughts on Dennett's [Consciousness
|
||||
Explained]. Yes, I'm finally done with the book.
|
||||
|
||||
I also decided to put some parts of my spoiler file online, once they have
|
||||
proven to be useful. First are experiments with [Speed Reading] and some
|
||||
general hacks for [Good Sleep].
|
||||
I also decided to put some parts of my spoiler file online, once they have
|
||||
proven to be useful. First are experiments with [Speed Reading] and some
|
||||
general hacks for [Good Sleep].
|
||||
|
||||
On-site comments are gone, but I'm still very much open to anything over mail.
|
||||
Sorry for the broken links. At least the RSS feed is still there. ;)
|
||||
On-site comments are gone, but I'm still very much open to anything over mail.
|
||||
Sorry for the broken links. At least the RSS feed is still there. ;)
|
||||
|
||||
[Consciousness Explained]: /reflections/con_exp.html
|
||||
[Determinism]: /reflections/determinism.html
|
||||
|
|
11
webifier.py
11
webifier.py
|
@ -34,11 +34,12 @@ class Webifier(object):
|
|||
self.now = dt.datetime.now()
|
||||
self.relist = re.compile("""
|
||||
<li>
|
||||
(?P<y>\d+) / (?P<m>\d+) / (?P<d>\d+):\
|
||||
(?P<desc>.+?)
|
||||
</li>
|
||||
""", re.X|re.S)
|
||||
self.recopy = re.compile("\.(yaml|pdc|swp)$")
|
||||
self.redate = re.compile("<p>(?P<y>\d+) / (?P<m>\d+) / (?P<d>\d+):",
|
||||
re.X)
|
||||
|
||||
def webify(self):
|
||||
"""wrapper for the whole process"""
|
||||
|
@ -161,15 +162,17 @@ class Webifier(object):
|
|||
|
||||
items = []
|
||||
for entry in self.relist.finditer(txt):
|
||||
print(entry.group("desc"))
|
||||
date = self.redate.search(entry.group("desc"))
|
||||
items.append(
|
||||
RSS2.RSSItem(
|
||||
title = "omg new stuff!!w!",
|
||||
link = "http://www.muflax.com/changelog.html",
|
||||
description = entry.group("desc"),
|
||||
pubDate = dt.datetime(
|
||||
int(entry.group("y")),
|
||||
int(entry.group("m")),
|
||||
int(entry.group("d"))
|
||||
int(date.group("y")),
|
||||
int(date.group("m")),
|
||||
int(date.group("d"))
|
||||
),
|
||||
guid = RSS2.Guid(
|
||||
hashlib.md5(entry.group("desc").encode("utf8")).hexdigest()
|
||||
|
|
Loading…
Reference in a new issue