{"id":21015082,"url":"https://github.com/frefrik/covid19norge-twitter","last_synced_at":"2025-03-13T16:34:05.966Z","repository":{"id":39886962,"uuid":"324440344","full_name":"frefrik/covid19norge-twitter","owner":"frefrik","description":"🐦 Twitter bot for tracking live COVID-19 statistics in Norway","archived":false,"fork":false,"pushed_at":"2023-04-04T12:57:08.000Z","size":48,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T12:06:32.096Z","etag":null,"topics":["bot","covid-19","covid19","koronavirus","norge","norway","python","smittestopp","twitter","twitter-bot","vaccine"],"latest_commit_sha":null,"homepage":"https://twitter.com/covid19norge","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/frefrik.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}},"created_at":"2020-12-25T22:07:35.000Z","updated_at":"2022-01-02T00:31:34.000Z","dependencies_parsed_at":"2023-01-24T05:45:14.845Z","dependency_job_id":null,"html_url":"https://github.com/frefrik/covid19norge-twitter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Fcovid19norge-twitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Fcovid19norge-twitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Fcovid19norge-twitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Fcovid19norge-twitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frefrik","download_url":"https://codeload.github.com/frefrik/covid19norge-twitter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243442089,"owners_count":20291603,"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":["bot","covid-19","covid19","koronavirus","norge","norway","python","smittestopp","twitter","twitter-bot","vaccine"],"created_at":"2024-11-19T10:08:37.179Z","updated_at":"2025-03-13T16:34:05.946Z","avatar_url":"https://github.com/frefrik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COVID-19 Norge - Twitter Bot\n\u003ca href=\"https://twitter.com/covid19norge\"\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/11590359/83902735-38810c80-a75d-11ea-94f8-dbc6aff85a61.png\"/\u003e\n\n\u003cb\u003eCOVID-19 Norge\u003c/b\u003e\u003cbr\u003e\n*https://twitter.com/covid19norge*\n\u003c/div\u003e\n\u003c/a\u003e\n\n## Description\nTwitter bot for tracking live COVID-19 statistics in Norway.\n\nThe bot autoposts live updates with a [Twitter developer account](https://developer.twitter.com/en/apply-for-access):\n```yaml\ntwitter:\n  auth:\n    consumer_key: \u003cCONSUMER_KEY\u003e\n    consumer_secret: \u003cCONSUMER_SECRET\u003e\n    access_token: \u003cACCESS_TOKEN\u003e\n    access_token_secret: \u003cACCESS_SECRET\u003e\n```\n\n## DataSource\n[https://github.com/frefrik/covid19norge-data](https://github.com/frefrik/covid19norge-data) (accessed through [covid19norge.no/api](https://covid19norge.no/api))\n\n## Features\n\n- **Live updates**\n  - Tested\n  - Confirmed cases\n  - Deaths\n  - Admissions\n  - Respiratory\n  - Vaccine doses\n  - Smittestopp\n- **Graphs**\n  - Tested\n  - Confirmed cases\n  - Dead\n  - Hospitalized\n  - Vaccine doses\n  - Smittestopp\n- **RSS**\n  - News from FHI (Folkehelseinstituttet)\n  - News from the goverment (Regjeringen)\n\n## Screenshots\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cb\u003eDaily Summary Statistics\u003c/b\u003e\u003c/summary\u003e\n\n\u003cp align=\"left\"\u003e\n\u003cimg width=415 alt=\"c19_graphs\" src=\"https://user-images.githubusercontent.com/11590359/103143694-0b597300-471c-11eb-820c-ea3ed1913d73.png\"\u003e\n\u003cimg width=415 alt=\"c19_stats\" src=\"https://user-images.githubusercontent.com/11590359/103143687-f846a300-471b-11eb-9e0b-a855099b4057.png\"\u003e\n\u003c/p\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eLive updates\u003c/b\u003e (click to expand)\u003c/summary\u003e\n\u003cp align=\"left\"\u003e\n\u003cimg width=500 alt=\"c19_live\" src=\"https://user-images.githubusercontent.com/11590359/103143763-3395a180-471d-11eb-9414-8230b4974ffc.png\"\u003e\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eRSS\u003c/b\u003e (click to expand)\u003c/summary\u003e\n\u003cp align=\"left\"\u003e\n \u003cimg width=415 alt=\"c19_rss-1\" src=\"https://user-images.githubusercontent.com/11590359/103143703-35129a00-471c-11eb-82f4-f802ae3bbd0d.png\"\u003e\n \u003cimg width=415 alt=\"c19_rss-2\" src=\"https://user-images.githubusercontent.com/11590359/103143731-c1bd5800-471c-11eb-8437-c7a0a2086e91.png\"\u003e\n\u003c/p\u003e\n\u003c/details\u003e\n\n## Installation\n\n### Docker\n##### Create a file named `docker-compose.yml` and add the following:\n```yaml\nversion: '3.8'\n\nservices:\n  bot:\n    container_name: covid19norge-twitter\n    image: frefrik/covid19norge-twitter:latest\n    restart: unless-stopped\n    environment:\n      - TZ=Europe/Oslo\n    volumes:\n      - ./config:/app/bot/config\n      - ./data:/app/bot/data\n```\n\n##### Download and edit bot configuration\n```shell\n$ mkdir -p config \\\n  \u0026\u0026 wget https://raw.githubusercontent.com/frefrik/covid19norge-twitter/main/config/config.dist.yml -O config/config.yml\n```\n\n##### Start bot\n```shell\n$ docker-compose up -d\n```\n\n---\n### git + Docker\n##### Clone the repository\n```shell\n$ git clone https://github.com/frefrik/covid19norge-twitter.git\n$ cd covid19norge-twitter/\n```\n##### Copy `config.dist.yml` to `config.yml` and edit configuration\n```shell\n$ cp config/config.dist.yml config/config.yml\n```\n\n##### Start bot\n```shell\n$ docker-compose up -d\n```\n\n---\n### Command line\n##### Install dependencies\n```shell\n$ pip install -r requirements.txt\n```\n\n##### Copy `config.dist.yml` to `config.yml` and edit configuration\n```shell\n$ cp config/config.dist.yml config/config.yml\n```\n\n##### Start bot\n```shell\n$ screen -dmS covid19norge-twitter python clock.py\n```\n\n##### Attaching to the screen\n```shell\n$ screen -r covid19norge-twitter\n```\n\n---\n\n#### Docker Notes\n##### Editing config\nIf `config.yaml` is updated while bot is running, the container must be restarted to use the updated config.\n```shell\n$ docker restart covid19norge-twitter\n```\n##### Bot logs\nUse `docker logs -f covid19norge-twitter` to show informational logs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrefrik%2Fcovid19norge-twitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrefrik%2Fcovid19norge-twitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrefrik%2Fcovid19norge-twitter/lists"}