barinek / gnip-expander Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ahoward/gnip-expander
relay a gnip publisher stream to another, expanding shortened uris in the process
This project forked from ahoward/gnip-expander
relay a gnip publisher stream to another, expanding shortened uris in the process
NAME gnip-expander SYNOPSIS gnip-expander [mode] [options]+ DESCRIPTION gnip-expander relays an existing gnip publisher's activites and re-publishers a stream with all http/https links published in a shortened form (bit.ly, etc) normalized to their long form. gnip-expander attempts to setup a keyword filter on the src publisher but does not require the publisher to support keyword filters - if the publisher does the entire stream is relayed. like all gnip.rb client code gnip-expander expects to find your gnip account info configured in ~/.gnip.yml in a file that looks like username: gnip-username password: gnip-password although you can pass this information in using the command line switches of course. gnip-expander keeps track of successfully relayed buckets in a directory (~/.gnip-expander by default). although you can pass in the starting point with the --timestamp switch gnip-expander is quite good at doing 'the right thing' with respect to which buckets to process. in general it simply processes all unprocessed buckets as quickly as possible and then proceeds to process any new bucket as it appears, polling only when all buckets are processed and new ones have yet to appear. PARAMETERS mode (1 ~> mode) one of start|stop|restart|pid for daemon control. all imply --daemon. --timestamp=timestamp, -t (0 ~> time(timestamp)) timestamp to begin relaying activites from --gnip-username=gnip-username (0 ~> gnip-username) you gnip username - default from ~/gnip.yml --gnip-password=gnip-password (0 ~> gnip-password) you gnip password - default from ~/gnip.yml --src-publisher=src-publisher (0 ~> src-publisher=twitter) publisher whose posts we want to expand --daemon, -D run continuously in the background --timeout=timeout (0 ~> integer(timeout=60)) polling interval in daemon mode --basedir=basedir (0 ~> basedir=/Users/ahoward/.gnip-expander) base directory for logs, config, pidfile, etc. --verbosity=verbosity, -v (0 ~> verbosity=info) one of debug(4)|info(3)|warn(2)|error(1)|fatal(0) --help, -h EXAMPLES . run at the console in verbose mode gnip-expander -v4 . run in the background in daemon mode gnip-expander start && tail -F ~/.gnip-expander/log . stop a background daemon gnip-expander stop . restart a background daemon gnip-expander restart . report the pid of the background daemon or currently running gnip-expander gnip-expander pid
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.