{"id":24227574,"url":"https://github.com/aditya-ranjan1234/twitter-c-implementation","last_synced_at":"2026-05-29T20:31:20.221Z","repository":{"id":270978281,"uuid":"912027690","full_name":"Aditya-Ranjan1234/Twitter-C-Implementation","owner":"Aditya-Ranjan1234","description":"Twitter Functions Implementation in C","archived":false,"fork":false,"pushed_at":"2025-01-27T20:26:28.000Z","size":129,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T06:14:34.416Z","etag":null,"topics":["c","dsda","twiiter"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aditya-Ranjan1234.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-04T13:48:36.000Z","updated_at":"2025-01-27T20:26:32.000Z","dependencies_parsed_at":"2025-01-04T14:44:30.046Z","dependency_job_id":"11761fcf-9a2f-453f-a80e-46d75375b5ff","html_url":"https://github.com/Aditya-Ranjan1234/Twitter-C-Implementation","commit_stats":null,"previous_names":["aditya-ranjan1234/twitter-c-implementation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aditya-Ranjan1234/Twitter-C-Implementation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya-Ranjan1234%2FTwitter-C-Implementation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya-Ranjan1234%2FTwitter-C-Implementation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya-Ranjan1234%2FTwitter-C-Implementation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya-Ranjan1234%2FTwitter-C-Implementation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aditya-Ranjan1234","download_url":"https://codeload.github.com/Aditya-Ranjan1234/Twitter-C-Implementation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya-Ranjan1234%2FTwitter-C-Implementation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27409019,"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-11-30T02:00:05.582Z","response_time":55,"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":["c","dsda","twiiter"],"created_at":"2025-01-14T10:18:17.005Z","updated_at":"2025-11-30T20:04:10.667Z","avatar_url":"https://github.com/Aditya-Ranjan1234.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter-C-Implementation\n\nThis project is part of the **Data Structures and Algorithms (DSDA) Lab** for college. It implements a simplified version of a Twitter-like platform using C. The application supports user registration, posting tweets, following/unfollowing users, viewing news feeds, and searching users by name.\n\n---\n\n## Features\n\n1. **Post Tweets**  \n   Users can post tweets with a unique tweet ID and a short message.\n\n2. **Follow/Unfollow Users**  \n   Users can follow or unfollow other users to manage their news feeds.\n\n3. **View News Feed**  \n   Retrieve the latest tweets from followed users and display up to 10 recent tweets.\n\n4. **Search Users by Username**  \n   Search for users by their username using a binary search tree for efficient lookup.\n\n5. **Display Tweets**  \n   View all tweets posted by a specific user.\n\n---\n\n## How to Run the Project\n\n1. Clone the repository or download the code.  \n   ```bash\n   git clone https://github.com/Aditya-Ranjan1234/Twitter-C-Implementation.git\n   ```\n2. Compile the C program using a compiler like GCC:  \n   ```bash\n   gcc -o twitter_simulation dsda-el.c\n   ```\n3. Run the executable:  \n   ```bash\n   ./twitter_simulation\n   ```\n\n---\n\n## Menu Options\n\nWhen running the program, you can select from the following options:\n\n1. **Post a Tweet**: Enter the user ID, username, tweet ID, and the message.  \n2. **Follow a User**: Enter the follower ID and followee ID.  \n3. **Get News Feed**: View recent tweets for a specific user ID.  \n4. **Unfollow a User**: Remove a follow relationship.  \n5. **Search User by Name**: Search for a user by their username and view their details.  \n6. **Exit**: Exit the platform and free all allocated memory.\n\n---\n\n## Data Structures Used\n\n- **Binary Search Tree (BST)**:  \n  Used for efficient user lookup by username.\n\n- **Stack**:  \n  Utilized to store and manage tweets for quick access.\n\n- **Linked List**:  \n  Stores tweets for each user.\n\n---\n\n## Code Highlights\n\n1. **Binary Search Tree for User Search**:  \n   Efficiently searches users by their username for faster results.\n\n2. **Stack for News Feed**:  \n   Provides a way to retrieve the latest tweets efficiently.\n\n3. **Dynamic Memory Management**:  \n   Ensures proper allocation and deallocation of memory for user and tweet data.\n\n---\n\n## Authors\n\n- **Aditya Ranjan**\n- **Gnanendra Naidu**\n- **Ahibhruth A**\n- **Garv Agarwalla** \n\n---\n\n## License\n\nThis project is licensed under the GNU License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## Acknowledgments\n\n- DSDA Lab Faculty for their guidance.\n- Fellow classmates for brainstorming ideas.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya-ranjan1234%2Ftwitter-c-implementation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faditya-ranjan1234%2Ftwitter-c-implementation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya-ranjan1234%2Ftwitter-c-implementation/lists"}