Skip to content

s/TwitterPrinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

##TO-DO ->Log files.

About

A Python application that prints tweets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published