Github Trending twitter bot
Posts to twitter one-at-a-day trending github repositories.
Free software: BSD license
More documentation: https://ghubtrending.readthedocs.org.
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=
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.
Metadata
Release files for ghubtrending 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ghubtrending-0.0.5.tar.gz | 12.7 kB | Without provenance | Details for ghubtrending-0.0.5.tar.gz |
Release files / ghubtrending-0.0.5.tar.gz
| Download URL | ghubtrending-0.0.5.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c134ae124fed18dd20f649ecbd30305010a3a8bc145d1e0bd0ab9d6378dc2a7
|
|
BLAKE2b-256 checksum How to use checksums |
fa51cfee5f1f90712275ffe262dbf75419068d6968e4f4bdc34990db2c161ff1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ghubtrending 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.