code-for-yamaguchi / covid19-yamaguchi-opendata Goto Github PK
View Code? Open in Web Editor NEW山口県公認 新型コロナウイルス感染症対策サイト https://yamaguchi.stopcovid19.jp/ 用データ生成スクリプト
License: MIT License
山口県公認 新型コロナウイルス感染症対策サイト https://yamaguchi.stopcovid19.jp/ 用データ生成スクリプト
License: MIT License
国土地理院データについて、現状のリポジトリ内にデータを保存して利用する方法ではなく、国土地理院から直接データAPIが提供されていないかなど他に活用手段がないか調査する
検査実施件数データページ自体が削除されたので、データの更新が止まっているので修正
https://yamaguchi-opendata.jp/ckan/dataset/350001-covid19
15分ごとに常に回している。
県庁の勤務時間+αくらいでいい。
年末年始の多く (37件、No. 5854-5890) に日付の誤りが見られます。
https://nishidayoshikatsu.github.io/covid19-yamaguchi-opendata/patients.json
山口県のオープンデータにも同じ間違いが見られました。
オープンデータからのデータ整形時にエラーが発生しているので、修正する
Code-for-Yamaguchi/covid19-yamaguchi#144
山口県の新型コロナウイルス感染症対策室の方から"PCR検査件数のデータを業務の都合上、今後集計しない"との連絡が入ったため、PCR検査件数のデータを廃止し、PCR検査人数のデータに変更する
※PCR検査件数データの廃止作業は、本リポジトリでの変更作業が修了しmasterにpushされた後に行う
想定外のデータに対しての処理を十分にコーディングしていないため、追加する
https://nishidayoshikatsu.github.io/covid19-yamaguchi-opendata/patients.json の1903例目の居住地に誤字があるようなのですが…
new.jsonの内容をコロナ関連のnews上位4件を表示するようにする
検査陽性者の状況データの陽性者数(累計)データの集計が間違っているので、修正する
dockerコマンドが長く環境構築がめんどくさいため、Makefileでショートカットを設定する
コードをリファクタリングする
Traceback (most recent call last):
File "main.py", line 11, in
dm.validate()
File "/root/dataloader.py", line 122, in validate
jsonschema.validate(self.data[key], self.SCHEMAS[key])
File "/usr/local/lib/python3.7/site-packages/jsonschema/validators.py", line 934, in validate
raise error
jsonschema.exceptions.ValidationError: '入院' is a required property
Failed validating 'required' in schema['properties']['data']['items']:
{'default': {},
'properties': {'入院': {'default': '', 'type': 'integer'},
'全国地方公共団体コード': {'default': '', 'type': 'string'},
'受付_年月日': {'default': '', 'type': 'string'},
'市区町村名': {'default': '', 'type': 'string'},
'死亡': {'default': '', 'type': 'integer'},
'退院': {'default': '', 'type': 'integer'},
'都道府県名 ': {'default': '', 'type': 'string'}},
'required': ['受付_年月日', '入院', '退院', '死亡'],
'type': 'object'}
On instance['data'][0]:
{' 市区町村名 ': '',
' 都道府県名': '山口県',
'入院等': '15',
'全国地方公共団体コード': '350001',
'受付_年月日': '2020/4/15',
'死亡': 0,
'退院': 5}
make: *** [exec] Error 1
現在、rssでデータ更新しているが、コロナ以外のnewsもあるため以下のサイトの該当箇所のスクレイピングに変更
https://www.pref.yamaguchi.lg.jp/cms/a10000/korona2020/202004240002.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.