Git Product home page Git Product logo

first-man-in-twitter's Introduction

Первый человек в твиттере согласно спискам

Скрипт обходит все заданные списки твиттерян и сортирует твиттерян по дате регистрации. Таким образом можно найти первого зарегистрированного человека.

Сделал ради интереса, чтобы найти первого твиттерянини Беларуси и удостовериться, что я первый твиттерянин Могилева :)

Как использовать

  1. Создать новое приложение в твиттере.
  2. Создать access token в настройках этого приложения.
  3. Скопировать config.example.php в config.php.
  4. Добавить в config.php все необходимые ключи с вкладки «OAuth tool» настроек приложения. Туда же добавить необходимые списки. Стоит учесть, что в Twitter API ограничение для используемого GET lists/members в 180 запросов за 15 минут. Списки длиннее 20 юзеров получаются страницами 20 юзеров. Одна страница — один запрос. Так что теоретически сумма всех участников заданных списков может быть не больше 3600.
  5. Запустить скрипт $ php firstman.php. В конце работы скрипта создастся файл output.txt с результатами.

Пример полученного результата

01. 1930391 — 22.03.2007 — egorka — 53.876672,27.563533
02. 3243201 — 02.04.2007 — denisperekhrest — Minsk BY
03. 4067301 — 10.04.2007 — Sanhe — Минск, Беларусь
04. 5429362 — 23.04.2007 — vojur — Minsk
05. 5430952 — 23.04.2007 — Slaver — Minsk, Belarus
06. 5432772 — 23.04.2007 — lodar — Belarus, Minsk
07. 5432832 — 23.04.2007 — predatorre — Minsk, Belarus
08. 5439692 — 23.04.2007 — Zap4ick — Minsk, Belarus
09. 5447512 — 24.04.2007 — tel_quel — 55.687513,37.569771
10. 5476482 — 24.04.2007 — artdaw — Minsk
11. 5530272 — 26.04.2007 — mikolka — Minsk, Belarus
12. 5580392 — 28.04.2007 — Malets — iPhone: 50.115768,8.677070
13. 5581082 — 28.04.2007 — Gruenmuth —
14. 5683722 — 01.05.2007 — unutranyholas — Minsk
15. 6038522 — 14.05.2007 — uthena — Belarus
16. 6992812 — 21.06.2007 — SpirITzzz — Belarus, Minsk
17. 7317492 — 07.07.2007 — dracula_x — Minsk, Belarus
18. 7325782 — 08.07.2007 — balm — Belarus, Minsk
19. 7330412 — 08.07.2007 — barilotti — Belarus
20. 7604422 — 20.07.2007 — vitalyn — 59.928697,30.360317
21. 7978582 — 06.08.2007 — seigiard — Minsk, Belarus
22. 8035442 — 07.08.2007 — xwoody — Mogilev, Belarus

Используется

  • codebird-php — для запросов к твиттеру.
  • GET lists/members — документация по используемому методу Twitter API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.