{"id":18451580,"url":"https://github.com/ncrocfer/twitter-calendar","last_synced_at":"2025-10-03T13:38:40.356Z","repository":{"id":36910598,"uuid":"41217635","full_name":"ncrocfer/twitter-calendar","owner":"ncrocfer","description":"Twitter contributions calendar","archived":false,"fork":false,"pushed_at":"2015-08-22T17:27:29.000Z","size":144,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T14:07:34.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncrocfer.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-22T17:26:01.000Z","updated_at":"2018-11-02T10:48:28.000Z","dependencies_parsed_at":"2022-09-25T04:24:40.699Z","dependency_job_id":null,"html_url":"https://github.com/ncrocfer/twitter-calendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrocfer%2Ftwitter-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrocfer%2Ftwitter-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrocfer%2Ftwitter-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrocfer%2Ftwitter-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncrocfer","download_url":"https://codeload.github.com/ncrocfer/twitter-calendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249494707,"owners_count":21281662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T07:29:10.102Z","updated_at":"2025-10-03T13:38:40.232Z","avatar_url":"https://github.com/ncrocfer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Twitter contributions calendar\n==============================\n\nLike Github does it for its `contributions calendar \u003chttps://help.github.com/articles/viewing-contributions-on-your-profile-page/#contributions-calendar\u003e`_, this tool displays a user's tweets in a dynamic calendar using the awesome `Cal-Heatmap \u003chttps://github.com/wa0x6e/cal-heatmap\u003e`_ library:\n\n.. image:: https://raw.githubusercontent.com/ncrocfer/twitter-calendar/master/calendar.png\n    :alt: Twitter contributions calendar\n    :width: 700\n    :height: 282\n    :align: center\n\nUsage\n-----\n\nIt's a simple script to launch, so I don't create the :code:`setup.py` file. To use it :\n\n.. code-block:: bash\n\n    $ git clone https://github.com/ncrocfer/twitter-calendar.git\n    $ cd twitter-calendar\n    $ pip install -r requirements.txt\n\nCreate a new `Twitter app \u003chttps://apps.twitter.com/\u003e`_ and fill in the :code:`CONSUMER_KEY`, :code:`CONSUMER_SECRET`, :code:`ACCESS_KEY` and :code:`ACCESS_SECRET` variables. Then you can get the tweets specifying the user's account :\n\n.. code-block:: bash\n\n    $ python twitter-calendar.py -u ncrocfer\n    [*] 399 tweets downloaded\n    [*] 598 tweets downloaded\n    ...\n\nYou can now copy the generated :code:`tweets.json` and :code:`index.html` files in your web root directory and see the results :)\n\nNotes\n-----\n\n- Due to a limitation `imposed \u003chttps://dev.twitter.com/rest/reference/get/statuses/user_timeline\u003e`_ by Twitter, this script can only return up to **3,200** of a user's most recent Tweets.\n- It is a simple script for now, but many improvements are possible (for example the script can be placed in a CRON job, or it could be a real web app with the help of Flask or Django). I will look to do this in the future.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrocfer%2Ftwitter-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncrocfer%2Ftwitter-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrocfer%2Ftwitter-calendar/lists"}