stephensekula / navierstokes

A bridge between some social networks to improve broadcasting and sharing.
6 stars 3 forks source link

Dev python twitter #2

Closed stephensekula closed 7 years ago

stephensekula commented 7 years ago

This branch, to be merged into master, introduces the use of the python-twitter library instead of the ruby t gem. The ruby t gem had severe limitations, the most egregious of which were that unicode characters were routinely mangled in string output. This made for quite ugly cross-posting from twitter to other services. Instead, the python-twitter library offers a native python object-based interface to the Twitter API and appears to handle strings more robustly.

This also avoids running twitter tools in the shell and pulling shell output into string input to the code.

The drawback is now the user needs to go to their Twitter account and access apps.twitter.com and add a new app (e.g. USERNAME-NavierStokes, or something like that with a unique name). They then will be issued credentials that need to be added to the NavierStokes configuration file. See the README.md for details.

Python Twitter is available from here: https://github.com/bear/python-twitter and can be installed with pip.