{"id":15322137,"url":"https://github.com/edmartt/datagetter","last_synced_at":"2026-01-07T07:09:59.130Z","repository":{"id":37098909,"uuid":"392827629","full_name":"Edmartt/datagetter","owner":"Edmartt","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-07T08:33:16.000Z","size":53,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T18:43:33.042Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Edmartt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-08-04T21:22:50.000Z","updated_at":"2021-10-12T13:56:39.000Z","dependencies_parsed_at":"2024-10-15T18:03:08.160Z","dependency_job_id":"4f373b9e-f4f3-4347-a45b-217a9564fa8a","html_url":"https://github.com/Edmartt/datagetter","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":"0.38235294117647056","last_synced_commit":"8707e6cace39d45c078a9601fa374064ade6a031"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fdatagetter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fdatagetter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fdatagetter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fdatagetter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Edmartt","download_url":"https://codeload.github.com/Edmartt/datagetter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245864065,"owners_count":20684960,"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":[],"created_at":"2024-10-01T09:14:18.431Z","updated_at":"2026-01-07T07:09:59.081Z","avatar_url":"https://github.com/Edmartt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datagetter\n\nThis script fetch data from fifa fut21 api and complementary for using [rest-fut21](https://github.com/Edmartt/rest-fut21)\n\n## Install:\n\n### On Windows\n\n```\ngit clone https://github.com/Edmartt/datagetter.git\n```\n\n```\ncd datagetter/\n```\n\n```\npip install -r requirements.txt\n```\n\n```\nset MYSQL_HOST=0.0.0.0\n```\n\n```set MYSQL_USER=the same username for the database user in [rest-fut21](https://github.com/Edmartt/rest-fut21)```\n\n```set MYSQL_PASSWORD=same as above, put the same password that you have for your mariadb/mysql instance```\n\n```set MYSQL_DATABASE=the same as rest-fut21```\n\n```set MYSQL_PORT=32000 (this is a forwarded port from the same container running rest-fut21 service)```\n\n\n### On Linux\n\n```\ngit clone https://github.com/Edmartt/datagetter.git\n```\n```\ncd datagetter/\n```\n\n```\npip install -r requirements.txt\n```\n\n```\nexport MYSQL_HOST=0.0.0.0\n```\n\n```export MYSQL_USER=the same username used for rest-fut21```\n    \n```export MYSQL_PASSWORD=the same used for rest-fut21```\n\n```export MYSQL_DATABASE=the same database for rest-fut21```\n\n```export MYSQL_PORT=32000 (this is a forwarded port from the same container running rest-fut21 service)```\n\n#### Note:\n\n**it requires that the container with the rest21 service it's started**\n\t\n\nSet a **.env** file for using before running following the **.env.example** file\n\n## Running:\n\n   ### On Windows:\n\n    $ python script.py\n\n   ### On Linux:\n    \n    $ python3 script.py\n  \n   The script will do a GET request to [Fifa Ultimate Team](https://futdb.app/api) API and will save the data in the rest-fut21 project container database. Every successful request it will ask if we want to continue and if we answer a **y** it will keep saving the data for every available page with data. If we type **n** the script will end of getting pages data and now we can use rest-fut21 making request according to docs in the readme.\n\nIf you want to test the saved data just create a connection with the MariaDB/MySQL client installed on your local machine \n\n#### Note:\n\nRemember that you will be running the rest-fut21 project first with docker-compose, and this is necessary because we need to save the data in mariadb/mysql volumen for querying this data later in rest-fut21 service\n\ni.e:\n\n\n    $ mariadb -u username -h 0.0.0.0 -P \u003cforwarded-port-from-rest-fut21\u003e -p mypassword\n\nOr:\n\n    $ mariadb -u username -h 0.0.0.0 -P \u003cforwarded-port-from-rest-fut21\u003e -p (press enter)\n\n    Password: *********\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmartt%2Fdatagetter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedmartt%2Fdatagetter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmartt%2Fdatagetter/lists"}