{"id":19840932,"url":"https://github.com/torvaney/understat-db","last_synced_at":"2025-10-23T18:18:08.551Z","repository":{"id":133824231,"uuid":"365771843","full_name":"Torvaney/understat-db","owner":"Torvaney","description":"Create a database of ⚽️ data from understat.com","archived":false,"fork":false,"pushed_at":"2021-10-19T22:07:29.000Z","size":1053,"stargazers_count":27,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T17:06:41.387Z","etag":null,"topics":["database","football-data","soccer-data","understat"],"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/Torvaney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2021-05-09T14:25:55.000Z","updated_at":"2024-12-05T22:05:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb66877f-ef00-49dc-a5f3-4b25360ed32c","html_url":"https://github.com/Torvaney/understat-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"fastai/nbdev_template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Funderstat-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Funderstat-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Funderstat-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Funderstat-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Torvaney","download_url":"https://codeload.github.com/Torvaney/understat-db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932602,"owners_count":21667178,"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":["database","football-data","soccer-data","understat"],"created_at":"2024-11-12T12:28:46.609Z","updated_at":"2025-10-23T18:18:08.454Z","avatar_url":"https://github.com/Torvaney.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Understat DB\n\u003e Create a database using data from \u003ca href='understat.com'\u003eUnderstat\u003c/a\u003e.\n\n\nUnderstat DB is a project to scrape data from [Understat](understat.com) and store it in a Postgres database. It aims to be a useful companion or starting point for projects using football data.\n\n## Usage\n\nThe simplest way to get started is to populate a local database with `docker-compose`.\n\nFirst, clone the repository:\n\n```bash\ngit clone https://github.com/Torvaney/understat-db.git\ncd understat-db\n```\n\nThen, setup the local environment\n\n```bash\nmake env                  # Create a virtualenv and installs the project \u0026 dependencies\nsource venv/bin/activate  # Activate the virtualenv\ncp .env.sample .env       # Copy default environment vars to .env\n```\n\nRun the database\n\n```bash\ndocker-compose up -d db   # Start a postgres database within a docker container\nunderstat-db migrate      # Create base database tables\n```\n\nFinally, import the data you want\n\n```bash\nunderstat-db ingest --leagues EPL --seasons 2020\n```\n\n## Requirements\n\nTo run this project you will need:\n\n* Python 3.6+\n* Docker\n\n\n## Contributing\n\nPull requests are encouraged! For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorvaney%2Funderstat-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorvaney%2Funderstat-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorvaney%2Funderstat-db/lists"}