{"id":18318735,"url":"https://github.com/xdevplatform/tweet-annotations","last_synced_at":"2025-08-23T14:36:25.237Z","repository":{"id":39833876,"uuid":"343836039","full_name":"xdevplatform/Tweet-Annotations","owner":"xdevplatform","description":"App to demo various features and functionality powered by Tweet Annotations and the Twitter API v2","archived":false,"fork":false,"pushed_at":"2022-12-08T11:58:12.000Z","size":156,"stargazers_count":7,"open_issues_count":4,"forks_count":2,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-05T21:36:57.255Z","etag":null,"topics":["flask","flask-application","python","tweet-annotations","twitter-api-v2","web-app","web-application"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xdevplatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-02T16:18:10.000Z","updated_at":"2025-03-10T18:25:36.000Z","dependencies_parsed_at":"2023-01-25T13:00:21.348Z","dependency_job_id":null,"html_url":"https://github.com/xdevplatform/Tweet-Annotations","commit_stats":null,"previous_names":["xdevplatform/tweet-annotations"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xdevplatform/Tweet-Annotations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdevplatform%2FTweet-Annotations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdevplatform%2FTweet-Annotations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdevplatform%2FTweet-Annotations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdevplatform%2FTweet-Annotations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xdevplatform","download_url":"https://codeload.github.com/xdevplatform/Tweet-Annotations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdevplatform%2FTweet-Annotations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271752125,"owners_count":24814750,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["flask","flask-application","python","tweet-annotations","twitter-api-v2","web-app","web-application"],"created_at":"2024-11-05T18:11:24.582Z","updated_at":"2025-08-23T14:36:25.177Z","avatar_url":"https://github.com/xdevplatform.png","language":"Python","readme":"# Tweet Annotations \n\nThis sample code shows you how you might build a demo web app with Python and [Flask](https://flask.palletsprojects.com/en/1.1.x/) and exemplifies some of the features and functionality available with the [Twitter API v2](https://developer.twitter.com/en/docs/twitter-api/early-access) and [Tweet Annotations](https://developer.twitter.com/en/docs/twitter-api/annotations). \n\n## Set up \n\n* In the root directory, rename `credentials.yaml.template` to `credentials.yaml` and insert your Twitter App credentials. Note that you must use the credentials belonging to a [Twitter Developer App](https://developer.twitter.com/en/docs/apps/overview) with access to the Twitter API v2.\n\n* Don't forget to add `credentials.yaml` to your `.gitignore` file to avoid compromising your App credentials.\n\n## Running the web app locally\n\nFollow these steps to run the web app on your local machine: \n* From the root directory in the command line type: `export FLASK_ENV=development`. (On Windows, use `set` instead of `export`.)\n* Then type `flask run`. \n* The web app is now running on your local host (usually something like `http://127.0.0.1:5000/`).\n* Further information on configuring your Flask app can be found [here](https://flask.palletsprojects.com/en/1.1.x/config/).\n\n## Functionality\n\nThis web app illustrates the following functionality: \n\n1. Get topics of interest for a profile (including top Tweet Annotations associated with a profile's Tweets and top most used emojis by this profile). \n2. Get topics of interest for a profile's followers. Same functionality as above, but for a user profile's follower base. \n3. For a given topic, get a list of users who recently Tweeted about this topic.\n4. For a given topic, get resonance metrics (including number of Tweets sent within the past 7 days, and aggregate engagement metrics, such as retweets, quote Tweets, likes, and replies).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdevplatform%2Ftweet-annotations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdevplatform%2Ftweet-annotations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdevplatform%2Ftweet-annotations/lists"}