{"id":20970371,"url":"https://github.com/saherpathan/citation_project","last_synced_at":"2025-07-29T02:41:11.504Z","repository":{"id":240995254,"uuid":"804020951","full_name":"Saherpathan/Citation_project","owner":"Saherpathan","description":"Fetching data from a paginated API endpoint ","archived":false,"fork":false,"pushed_at":"2024-08-16T18:51:18.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T04:35:34.609Z","etag":null,"topics":["aiohttp","api-endpoints","data-fetching","flask-application","python"],"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/Saherpathan.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":"2024-05-21T19:59:07.000Z","updated_at":"2024-08-16T18:52:37.000Z","dependencies_parsed_at":"2024-05-21T21:26:36.509Z","dependency_job_id":"db0347d9-e8ad-4960-8bd4-131e73f84a23","html_url":"https://github.com/Saherpathan/Citation_project","commit_stats":null,"previous_names":["saherpathan/citation_project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saherpathan%2FCitation_project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saherpathan%2FCitation_project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saherpathan%2FCitation_project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saherpathan%2FCitation_project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saherpathan","download_url":"https://codeload.github.com/Saherpathan/Citation_project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243365637,"owners_count":20279215,"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":["aiohttp","api-endpoints","data-fetching","flask-application","python"],"created_at":"2024-11-19T03:58:04.122Z","updated_at":"2025-03-13T08:18:14.064Z","avatar_url":"https://github.com/Saherpathan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n\r\n# Python Citation Project\r\n\r\n## Description\r\nA Python script fetches data from a paginated API endpoint provided by BeyondChats. It identifies sources for each response and returns the citations as a JSON array. Additionally, there is an optional Flask app provided for a user-friendly interface to access the citations.\r\n\r\n## Setup\r\n\r\n1. **Clone the Repository:**\r\n   ```bash\r\n   git clone https://github.com/Saherpathan/Citation_project.git\r\n   cd Citation_project\r\n   ```\r\n\r\n2. **Install Dependencies:**\r\n   ```bash\r\n   pip install -r requirements.txt\r\n   ```\r\n\r\n## Usage\r\n\r\n### Running the Script\r\n\r\nTo run the script and fetch citations from the API, execute the following command:\r\n```bash\r\npython main.py\r\n```\r\n\r\nThe citations will be printed to the console.\r\n\r\n### Running the Flask App \r\n\r\n1. Ensure Flask is installed:\r\n   ```bash\r\n   pip install Flask\r\n   ```\r\n\r\n2. Run the Flask app:\r\n   ```bash\r\n   python app.py\r\n   ```\r\n\r\n3. Access the endpoint:\r\n   Open your browser and navigate to [http://127.0.0.1:5000/citations](http://127.0.0.1:5000/citations) to view the citations in a user-friendly interface.\r\n\r\n## Project Structure\r\n\r\n- `main.py`: The main Python script for fetching data and processing citations.\r\n- `app.py`: Flask application script for providing a user interface.\r\n- `requirements.txt`: Contains a list of Python dependencies.\r\n- `README.md`: This file providing information about the project.\r\n\r\n## API Endpoints\r\n\r\n`/citations`: Returns citations for all objects retrieved from the API.\r\n\r\n## License\r\n\r\n[MIT License](LICENSE)\r\n\r\n## Contributor\r\nSAHER PATHAN\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaherpathan%2Fcitation_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaherpathan%2Fcitation_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaherpathan%2Fcitation_project/lists"}