Giter VIP home page Giter VIP logo

twitter2pdf's Introduction

twitter2pdf

Python script to create pdf from twitter streams, user timelines or lists

Getting tweets from lists or user timelines python script and creating pdf from them using optional filter
programmer: Josifoski Aleksandar
about.me/josifsk

Dependencies

program uses python3+
program is dependant on installed console twitter client https://github.com/sferik/t
dependant on thirdparty packages: reportlab pdfrw (this are used to implement footer and page numbering in exported pdf)
on ubuntu they can be installed via pip3: pip3 install pdfrw reportlab
also program is dependant on installed libreoffice to generate pdf, keep eye how is started via command line

Usage

just before starting script change this details (in script):

startdate = '2015-08-01'  
enddate = '2015-08-24'  
printreff = True  #writing time, source, link  
username = 'adam222up' #change here username  
blist = True #for using lists, if false, then username tweets from timeline will be pulled  
if blist:  
    whichlist = 'news' #also change here specific list  
filtering = True  
numofpulledtweets = 200 #last tweets  # if date interval is wide then increase numofpulledtweets
# maximum is afaik 2000-3000 tweets.
# also be aware that pulling is for last tweets, so date intervals eventually should be close by today
# depends on how many tweets are for user or list

twitter2pdf's People

Contributors

josifoski avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.