{"id":13827650,"url":"https://github.com/Hesbadami/Footballemrooz","last_synced_at":"2025-07-09T04:33:21.462Z","repository":{"id":191940839,"uuid":"348905936","full_name":"Hesbadami/Footballemrooz","owner":"Hesbadami","description":"Scrape data on all soccer matches daily, and create a stylized image containing info on today's matches (e.g. kick-off time and broadcasters).","archived":false,"fork":false,"pushed_at":"2022-01-31T06:58:47.000Z","size":9081,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-05T09:16:23.904Z","etag":null,"topics":["postgresql","soccer-matches","telegram-bots","webscraping"],"latest_commit_sha":null,"homepage":"https://t.me/footballemrooz","language":"Python","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/Hesbadami.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}},"created_at":"2021-03-18T01:43:25.000Z","updated_at":"2023-01-07T13:42:35.000Z","dependencies_parsed_at":"2023-09-01T16:51:30.258Z","dependency_job_id":null,"html_url":"https://github.com/Hesbadami/Footballemrooz","commit_stats":null,"previous_names":["hesbadami/footballemrooz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hesbadami%2FFootballemrooz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hesbadami%2FFootballemrooz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hesbadami%2FFootballemrooz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hesbadami%2FFootballemrooz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hesbadami","download_url":"https://codeload.github.com/Hesbadami/Footballemrooz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225486404,"owners_count":17481891,"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":["postgresql","soccer-matches","telegram-bots","webscraping"],"created_at":"2024-08-04T09:02:04.423Z","updated_at":"2024-11-20T07:30:59.355Z","avatar_url":"https://github.com/Hesbadami.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# **Footballemrooz**: *Today's Soccer Matches*\n\nA server-side program, which gathers data on all soccer matches daily, and creates a stylized image containing info on today's matches (e.g. kick-off time and broadcasters).\n\n----------\nPrerequisites\n-------------\n- `Python 3.6` or higher\n- PostgreSQL: [How to Install PostgreSQL and phpPgAdmin on Ubuntu 20.04](https://www.howtoforge.com/tutorial/ubuntu-postgresql-installation/)\n- Install necessary packages using `pipenv install`. Run `pip install pipenv` if you don't have it installed. Full instructions for installing and using pipenv is provided [here](https://realpython.com/pipenv-guide/#pipenv-introduction). Also have a look at [their github](https://github.com/pypa/pipenv) if you are interested. \n\nGathering matches using the main program (Soccertoday.py)\n-------\nTo activate the project's virtualenv, run `pipenv shell`.\nAlternatively, run commands inside the virtualenv with `pipenv run`.\n\n```bash\npython Soccertoday.py\n```\nThe result is saved (by default) in `results/\u003cdate\u003e.html` (e.g. `2021-03-18.html`). You can specify wether if you also want a `png` image created as an argument,  similarly the image is also saved in `results/\u003cdate\u003e.png`. The image creation is supported by `Selenium` and Chromium's [ChromeDriver](https://chromedriver.chromium.org). Do not use if you don't or can't have ChromeDriver with Chromium browser (e.g. on windows). (Note that regular Chrome browser does not work! Chromium is essential.)\n\n##### Tips:\n- Use `--telegram` argument to also attach a [Telegram Bot](https://core.telegram.org/bots). You need to pass your api token and chat ID into configs.\n- If you wish only for html results and don't want `png` image to be created. Use the `--noimage` argument and give another try.\n- Use the `--config` argument, to go through configuration wizard again. Alternatively, you can manually edit the `config.json` file.\n\nPreparing the database\n----------\nOur program uses a PostgreSQL database. See [here](https://www.howtoforge.com/tutorial/ubuntu-postgresql-installation/) for installing PostgreSQL along with phppgadmin administration tool on Ubuntu.\n##### Creating database after installation\n```bash\nsudo -i -u postgres psql\n```\n\n```psql\nCREATE DATABASE footballemrooz WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE = 'en_US.UTF-8';\n```\nAdditional setups like creating tables are done automatically in the program. (Stored in `dbtables.sql`)\n\n##### Database structure\n```\nPostgreSQL\n├── footballemrooz\n|\t├── Schemas\n|\t│\t├── Public (default)\n|\t│\t│\t├── Tables\n|\t│\t│\t│   ├── links\n|\t│\t│\t│   ├── teams\n|\t│\t│\t│   ├── competitions\n|\t│\t│\t│   ├── posts\n|\t│\t│\t│   ├── matches\n```\n\nScheduling\n----------\nTo automate a daily scheduled run (at \"09:00 AM\" for example) use Cron Job. A quick and short guide on setting up Cron Job is provided [here](https://gavinwiener.medium.com/how-to-schedule-a-python-script-cron-job-dea6cbf69f4e).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHesbadami%2FFootballemrooz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHesbadami%2FFootballemrooz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHesbadami%2FFootballemrooz/lists"}