Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

This bot monitors github trending repositories and twitts about them

Project Description

Workflow

  • Check if if this week we’ve got a json file, if not
    • Get the week’s twitter repositories
    • Store them in a json file
    • Publish the json file to github (just for coolness)
  • If we’ve got it.
    • Get current day’s twitter trending.

This means that we’re not actually posting today’s trending but one specific day’s Nth trending being N the day of week.

But that’s ok, as I’m doing this to have one specific repository each week.

Also, we mantain a list of already-posted repos and get the next one if we’ve already posted that.

Features

  • Python 3
  • Twitts one twitt-at-a-day so people won’t get tired
  • Does not twitt repeated twitts

Usage

Install it by executing:

python setup.py install

I recommend the usage of a virtualenv.

This will create an entry_point, called ghubtrending, that will update the twitter status with the repository of the week.

This works only on python3. Configuration file should be, located at ~/.ghtrend_bot.cfg as follows:

[github]
login=
password=

[twitter]
CONSUMER_KEY=
CONSUMER_SECRET=
ACCESS_TOKEN=
ACCESS_TOKEN_SECRET=

Warning

This gets the trending repositories CREATED last week Currently this seems to be GH’s way of showing trending.gh.com but it might change in the future on GH’s side. Not here. This one will continue to show last week’s =)

This requires you’ve got ~/.ghtrending directory created. I’m using that to have a link to data/ in there and auto-commit its content

History

0.0.1 (2015-06-14)

  • First release on PyPI.
Release History

Release History

This version
History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ghubtrending-0.0.5.tar.gz (12.7 kB) Copy SHA256 Checksum SHA256 Source Jul 14, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting