{"id":34029477,"url":"https://github.com/ramusus/django-twitter-api","last_synced_at":"2026-04-07T15:33:07.392Z","repository":{"id":8265474,"uuid":"9717167","full_name":"ramusus/django-twitter-api","owner":"ramusus","description":"Django implementation for Twitter API based on Django models","archived":false,"fork":false,"pushed_at":"2016-04-15T13:21:22.000Z","size":128,"stargazers_count":32,"open_issues_count":3,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-12-15T07:46:46.828Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ramusus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-27T16:00:14.000Z","updated_at":"2021-02-27T18:46:36.000Z","dependencies_parsed_at":"2022-08-07T00:15:25.097Z","dependency_job_id":null,"html_url":"https://github.com/ramusus/django-twitter-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ramusus/django-twitter-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-twitter-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-twitter-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-twitter-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-twitter-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramusus","download_url":"https://codeload.github.com/ramusus/django-twitter-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-twitter-api/sbom","scorecard":{"id":761027,"data":{"date":"2025-08-11","repo":{"name":"github.com/ramusus/django-twitter-api","commit":"dec2f3c15c332f7e7a524d92dc3e15468aa2d85e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T23:30:44.814Z","repository_id":8265474,"created_at":"2025-08-22T23:30:44.814Z","updated_at":"2025-08-22T23:30:44.814Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31518581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-12-13T17:37:32.696Z","updated_at":"2026-04-07T15:33:07.380Z","avatar_url":"https://github.com/ramusus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Twitter API\n\n[![Build Status](https://travis-ci.org/ramusus/django-twitter-api.png?branch=master)](https://travis-ci.org/ramusus/django-twitter-api) [![Coverage Status](https://coveralls.io/repos/ramusus/django-twitter-api/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-twitter-api)\n\nApplication for interacting with Twitter API objects using Django model interface\n\n## Installation\n\n    pip install django-twitter-api\n\nAdd into `settings.py` lines:\n\n    INSTALLED_APPS = (\n        ...\n        'oauth_tokens',\n        'm2m_history',\n        'taggit',\n        'twitter_api',\n    )\n\n    # oauth-tokens settings\n    OAUTH_TOKENS_HISTORY = True                                        # to keep in DB expired access tokens\n    OAUTH_TOKENS_TWITTER_CLIENT_ID = ''                                # application ID\n    OAUTH_TOKENS_TWITTER_CLIENT_SECRET = ''                            # application secret key\n    OAUTH_TOKENS_TWITTER_USERNAME = ''                                 # user login\n    OAUTH_TOKENS_TWITTER_PASSWORD = ''                                 # user password\n\n## Usage examples\n\n### Simple API request\n\n    \u003e\u003e\u003e from twitter_api.utils import api\n    \u003e\u003e\u003e response = api('get_status', 327926550815207424)\n    \u003e\u003e\u003e response.text\n    '@mrshoranweyhey Thanks for the love! How about a follow for a follow? :) ^LF'\n    \u003e\u003e\u003e response.source_url\n    'http://www.exacttarget.com/social'\n    \u003e\u003e\u003e response = api('get_user', 'BarackObama')\n    \u003e\u003e\u003e response.id, response.name\n    (813286, 'Barack Obama')\n\n### Fetch status by ID\n\n    \u003e\u003e\u003e from twitter_api.models import Status\n    \u003e\u003e\u003e status = Status.remote.fetch(327926550815207424)\n    \u003e\u003e\u003e status\n    \u003cStatus: Coca-Cola: @mrshoranweyhey Thanks for the love! How about a follow for a follow? :) ^LF\u003e\n    \u003e\u003e\u003e status.in_reply_to_status\n    \u003cStatus: FOOODDD: @CocaCola I LOVE U SO MUCH PLEASE FOLLOW ME IT WOULD BE MY DREAM\u003e\n\n### Fetch user by ID and user name\n\n    \u003e\u003e\u003e from twitter_api.models import User\n    \u003e\u003e\u003e User.remote.fetch(813286)\n    \u003cUser: Barack Obama\u003e\n    \u003e\u003e\u003e User.remote.fetch('BarackObama')\n    \u003cUser: Barack Obama\u003e\n\n### Fetch statuses of user\n\n    \u003e\u003e\u003e from models import User\n    \u003e\u003e\u003e user = User.remote.fetch(813286)\n    \u003e\u003e\u003e user.fetch_statuses(count=30)\n    [\u003cStatus: Barack Obama: RT @obamacare: Want to know something awesome? http://t.co/bDLs2MJbid\u003e,\n     \u003cStatus: Barack Obama: RT @WhiteHouse: Thanks in part to the Affordable Care Act, health care costs are growing at the slowest rate in more than 50 years → http:/…\u003e,\n     \u003cStatus: Barack Obama: There's a new deadline to #GetCovered. Enroll before January 15th and be covered starting February 1st: http://t.co/dVPtUdoZCI\u003e,\n     ...]\n\n### Fetch followers of user\n\n    \u003e\u003e\u003e from twitter_api.models import User\n    \u003e\u003e\u003e user = User.remote.fetch(813286)\n    \u003e\u003e\u003e user.fetch_followers(all=True)\n    [\u003cUser: Raymonde Haris\u003e, \u003cUser: Dark king\u003e, \u003cUser: Byby_Cuachaa\u003e, '...(remaining elements truncated)...']\n\n### Fetch retweets of status\n\n    \u003e\u003e\u003e from twitter_api.models import Status\n    \u003e\u003e\u003e status = Status.remote.fetch(329231054282055680)\n    \u003e\u003e\u003e status.fetch_retweets()\n    [\u003cStatus: Alexandr: RT @Tele2Russia: Друзья, мы представляем вам новую услугу «Везде ноль» http://t.co/lDT1wmnhUU\u003e,\n     \u003cStatus: Andrew Boriskin: RT @Tele2Russia: Друзья, мы представляем вам новую услугу «Везде ноль» http://t.co/lDT1wmnhUU\u003e,\n     \u003cStatus: Денис Цуканов: RT @Tele2Russia: Друзья, мы представляем вам новую услугу «Везде ноль» http://t.co/lDT1wmnhUU\u003e,\n     ...]\n\n### Fetch replies of status\n\n    \u003e\u003e\u003e from twitter_api.models import Status\n    \u003e\u003e\u003e status = Status.remote.fetch(536859483851735040)\n    \u003e\u003e\u003e status.fetch_replies()\n    [\u003cStatus: Cho: @interfax_news Правильно! Жги, Серёга!!!!\u003e,\n    \u003cStatus: Татьяна Анисимова: @interfax_news пир во время чумы,стыдно господа!\u003e,\n    \u003cStatus: Григорьев Михаил: @interfax_news eobot.com/user/84048\u003e,\n    ...]\n    \u003e\u003e\u003e status.replies_count\n    6\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framusus%2Fdjango-twitter-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framusus%2Fdjango-twitter-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framusus%2Fdjango-twitter-api/lists"}