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
- Host: GitHub
- URL: https://github.com/s/twitterprinter
- Owner: s
- Created: 2013-07-26T13:54:45.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-08T00:14:23.000Z (almost 13 years ago)
- Last Synced: 2025-02-08T12:30:45.430Z (over 1 year ago)
- Language: Python
- Size: 1020 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

##TO-DO
->Log files.