An open API service indexing awesome lists of open source software.

https://github.com/s/twitterprinter

A Python application that prints tweets
https://github.com/s/twitterprinter

Last synced: about 1 year ago
JSON representation

A Python application that prints tweets

Awesome Lists containing this project

README

          

TwitterPrinter
==============

A Python application that searchs and prints Twitter tweets with the given hashtag.

Application first connects to Twitter Api and fetchs matched tweet datas.

Then clones the template main.html and replaces tags with returning data from Api.

##Installation and Run

```
$ git clone git://github.com/s/TwitterPrinter.git ~/TwitterPrinter
$ cd ~/TwitterPrinter
$ python app.py
```

##Skeletal

Classes: (Core python files)



Api.py : Handles Twitter Api connection and generates html files.


Output: (Public data)



assets : Contains css and font files.

templates : Contains original templates.

views : Contains generated views. Generated views will be in the folder for e.g views/#TwitterPrinter

##Configuration (config.yaml)
consumerKey : Instagram api consumer key.

consumerSecret : Instagram api consumer secret.

accessToken : Instagram api access token.

accessTokenSecret : Instagram api access token secret.

delayTime : Delay time between each api request. Default: 30(seconds)

pageTitle : Page title of generated html file. Default: InstagramPrinter

searchHashtag : Hashtag to search. Default:TwitterPrinter

templateFileName : Name of template file. Default: main.html

##View Template Tags:

{$title} : Page Title

{$photoUrl} : Url of photo

{$photoWidth} : Width of photo

{$photoHeight} : Height of photo

{$postOwnerAvatar} : Avatar of post owner

{$postOwnerUsername} : Screen username of post owner

{$postOwnerName} : Name of post owner

{$postDate} : Create date of post

{$photo} .. {/$photo} : Media block

##Screen Shots

![View Screen Shot](https://github.com/s/TwitterPrinter/blob/master/screenshots/twitter.png?raw=true)

##TO-DO
->Log files.