twitter-sort-Twitter Sort 排序算法库, 基于 Twitter API.

twitter-sort-Twitter Sort 排序算法库, 基于 Twitter API. 通过脚本将一堆想排序的数字 通过 tweet 咨询愿意帮忙的真人, 综合起来,将结果打印到控制回来

Python 算法和模式

访问GitHub主页

共384Star

详细介绍

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

推荐源码