Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

exPHAT/twitter-sort

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Twitter Sort

Twitter Sort is a sorting algorithm that takes advantage of the Twitter API. You pass the script the numbers you would like sorted and it will tweet a request asking for somebody to sort them. When someone replies with a sorted version of the numbers, it will print them to the console and return.

Setup

Ensure you have the tweepy module installed:

pip install tweepy

Or clone from the Git repository:

git clone https://github.com/tweepy/tweepy.git
cd tweepy
python setup.py install

Rename settings_template.py to settings.py and fill the API_KEY and API_SECRET with your own key.

Example

$ python main.py 99,9001,1337,8008,301

a twitter-sort example

About

🐦 Sort numbers with some help from the Twitter API

Topics

Resources

License

Stars

Watchers

Forks

Languages