- Twisted Python
- iso8601
- pyopenssl
python discourse2nntp.py api_host api_key api_username
License: Other
Now every single post is fetched invidually, Discourse API supports bulk requests.
gnus sometimes complains about invalid data and shows From header as empty in group view.
Now it uses hard coded categories from a private Discourse installation.
Now when a post is in memory, it will not be updated even when it's edited in Discourse.
CLIENT: HEAD <xxx>
SERVER: 501 command syntax error
Unhandled Error
Traceback (most recent call last):
File "/Users/kaali/.virtualenvs/discoursenntp/lib/python2.7/site-packages/twisted/internet/tcp.py", line 215, in doRead
return self._dataReceived(data)
File "/Users/kaali/.virtualenvs/discoursenntp/lib/python2.7/site-packages/twisted/internet/tcp.py", line 221, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/Users/kaali/.virtualenvs/discoursenntp/lib/python2.7/site-packages/twisted/protocols/basic.py", line 571, in dataReceived
why = self.lineReceived(line)
File "discourse2nntp.py", line 359, in lineReceived
nntp.NNTPServer.lineReceived(self, line)
--- <exception caught here> ---
File "/Users/kaali/.virtualenvs/discoursenntp/lib/python2.7/site-packages/twisted/news/nntp.py", line 538, in lineReceived
func(*parts)
File "/Users/kaali/.virtualenvs/discoursenntp/lib/python2.7/site-packages/twisted/news/nntp.py", line 846, in do_HEAD
defer = self.articleWork(article, 'HEAD', self.factory.backend.headRequest)
File "/Users/kaali/.virtualenvs/discoursenntp/lib/python2.7/site-packages/twisted/news/nntp.py", line 791, in articleWork
return func(self.currentGroup, index = None, id = article)
exceptions.TypeError: headRequest() got an unexpected keyword argument 'id'
At the moment messages will have incorrect time as timezones are not really supported.
Discourse returns relative and/or protocol-less urls. These should be fixed by post parser.
We don't know if a topic has been updated or not, so we fetch all the topics always.
Topics, articles and posts are used interchangeably, which is wrong.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.