{"id":26578031,"url":"https://github.com/dadananjesha/twitter-search-api","last_synced_at":"2026-04-20T09:31:15.994Z","repository":{"id":219438899,"uuid":"342699922","full_name":"DadaNanjesha/Twitter-Search-API","owner":"DadaNanjesha","description":"A minimum viable product written in Python using Django and the Django REST Framework with a sqlite database.","archived":false,"fork":false,"pushed_at":"2025-03-11T20:19:39.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-11T20:40:58.063Z","etag":null,"topics":["django-application","django-rest-framework","dockerfile","mvp","mvt-architecture","python3","sql","sqlite3","twitter-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DadaNanjesha.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-02-26T21:00:58.000Z","updated_at":"2025-03-11T20:21:14.000Z","dependencies_parsed_at":"2025-02-06T21:26:21.137Z","dependency_job_id":"6f09d27e-c3e3-4ffd-b3b5-8448387c947f","html_url":"https://github.com/DadaNanjesha/Twitter-Search-API","commit_stats":null,"previous_names":["dadananjesha/twitter-search-api"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DadaNanjesha/Twitter-Search-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FTwitter-Search-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FTwitter-Search-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FTwitter-Search-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FTwitter-Search-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DadaNanjesha","download_url":"https://codeload.github.com/DadaNanjesha/Twitter-Search-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FTwitter-Search-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32041174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["django-application","django-rest-framework","dockerfile","mvp","mvt-architecture","python3","sql","sqlite3","twitter-api"],"created_at":"2025-03-23T04:18:59.638Z","updated_at":"2026-04-20T09:31:15.975Z","avatar_url":"https://github.com/DadaNanjesha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter Search API (Django project)\n\nA **lightweight and efficient** Twitter Search API built with **Python, Django, and Django REST Framework**. This project utilizes the **Twitter Search API** to fetch, store, filter, and export tweets related to trending events and hashtags.\n\n---\n\n## 🚀 Features\n\n- 🔍 **Search Twitter** - Fetch recent tweets based on trending hashtags or keywords.\n- 🗄️ **Store \u0026 Retrieve** - Save tweets into a local SQLite database and retrieve them with flexible filtering options.\n- 📤 **Export to CSV** - Export tweet data in CSV format for analysis.\n- 🖥️ **REST API Endpoints** - Easily interact with tweet data using well-structured API endpoints.\n\n---\n\n## 📌 API Endpoints\n\n### 1️⃣ **Trigger a Twitter Search**\nFetch tweets for high-traffic hashtags.\n```bash\nGET /search/?query=YourSearchQuery\n```\n**Example:** `http://127.0.0.1:8000/search/?query=ElectionDay`\n\n### 2️⃣ **Retrieve Stored Tweets**\nFetch tweets stored in the database with optional filtering.\n```bash\nGET /twitterSearch/\nGET /twitterSearch/?search=YourKeyword\n```\n**Example:** `http://127.0.0.1:8000/twitterSearch/?search=ko`\n\n### 3️⃣ **Export Tweets to CSV**\nExport stored tweets to CSV, selecting relevant columns.\n```bash\nGET /twitterDataExport/\n```\n**Example:** `http://127.0.0.1:8000/twitterDataExport/`\n\n---\n\n## 📂 Project Structure\n![Project Structure](template/images/Project_Structure.jpg)\n\n---\n\n## 🛠️ Installation\n\n1️⃣ **Clone the Repository**\n```bash\ngit clone https://github.com/yourusername/twitter-search-api.git\ncd twitter-search-api\n```\n\n2️⃣ **Create \u0026 Activate Virtual Environment**\n```bash\npython -m venv env\nsource env/bin/activate  # On Windows use `env\\Scripts\\activate`\n```\n\n3️⃣ **Install Dependencies**\n```bash\npip install -r requirements.txt\n```\n\n4️⃣ **Run Database Migrations**\n```bash\npython manage.py migrate\n```\n\n5️⃣ **Start the Development Server**\n```bash\npython manage.py runserver\n```\n\n---\n\n## ⚙️ Environment Variables\n\nTo connect to Twitter API, set up the following environment variables:\n```bash\nTWITTER_API_KEY=\u003cYour_Twitter_API_Key\u003e\nTWITTER_API_SECRET_KEY=\u003cYour_Twitter_API_Secret_Key\u003e\nTWITTER_ACCESS_TOKEN=\u003cYour_Twitter_Access_Token\u003e\nTWITTER_ACCESS_TOKEN_SECRET=\u003cYour_Twitter_Access_Token_Secret\u003e\n```\n\n---\n\n## 🧪 Running Tests\nRun the test suite to verify functionality:\n```bash\npython manage.py test\n```\n\n---\n\n## 🤝 Contributions\n\nWe welcome contributions! 🎉 To contribute:\n- Fork the repository.\n- Create a new branch.\n- Implement your changes.\n- Submit a pull request.\n\nEnsure that your code is well-documented and includes relevant tests.\n\n---\n## ⭐️ Call-to-Action\n\nIf you find this project helpful, please consider:\n- **Starring** the repository to show your support.\n- **Forking** to contribute improvements.\n- **Following** for updates on future projects.\n\nYour engagement helps boost visibility and encourages further collaboration!\n\n---\n## 📝 License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\n💙 **Happy Coding!** 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadananjesha%2Ftwitter-search-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdadananjesha%2Ftwitter-search-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadananjesha%2Ftwitter-search-api/lists"}