#36 Asyncify our methods to improve performance
It's taking on average 40-50 seconds to scrape each time. This is too slow because the appointments are going very quickly now. We will save significant time by adopting async. Now down to 10-12 seconds. Test plan: `yarn scrape` confirm still works. mohw_nantou is broken and I need to file a fix request. *Test Plan:* ``` (vaccine2) ~/Documents/Programming/g0v/vaccine2/backend master● 0m python local_scraper.py [(3, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (11, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (19, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (8, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (27, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (21, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (17, {'self_paid': <AppointmentAvailability.AVAILABLE: 'Available'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (10, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (1, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.AVAILABLE: 'Available'>}), (13, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (14, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.AVAILABLE: 'Available'>}), (28, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.AVAILABLE: 'Available'>}), (29, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.AVAILABLE: 'Available'>}), (12, {'self_paid': <AppointmentAvailability.AVAILABLE: 'Available'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (22, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (2, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (4, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (5, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (6, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (7, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (9, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (15, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (16, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (18, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (20, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (23, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (24, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (25, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (26, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (30, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (31, {'self_paid': <AppointmentAvailability.NO_DATA: 'No data'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>})] ----Time: 50.78437399864197---- (vaccine2) ~/Documents/Programming/g0v/vaccine2/backend async 0m python local_scraper.py ----scrape_tonyen_hsinchu: 0.1959974765777588----- ----parse_tzuchi_hualien: 0.22075915336608887----- ----parse_ntu_yunlin: 0.4962174892425537----- ----parse_ntu_hsinchu: 0.8664581775665283----- ----parse_ntu_taipei: 1.107123613357544----- ----scrape_pch_nantou: 1.1037871837615967----- -----parse_mohw_nantou: Unexpected error: <class 'KeyError'> ----scrape_changgung_chiayi: 1.19110107421875----- ----parse_tzuchi_taipei: 1.9510462284088135----- ----parse_mohw_keelung: 1.9770476818084717----- ----scrape_siaogang_kaohsiung: 2.4221842288970947----- ----parse_mohw_taitung: 2.4698691368103027----- ----parse_mohw_miaoli: 2.8588149547576904----- ----parse_mohw_taoyuan: 3.3229405879974365----- ----parse_mohw_taichung: 3.3663933277130127----- ----parse_ncku_tainan: 5.681906461715698----- ----parse_mohw_kinmen: 8.428256511688232----- [(3, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (11, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (19, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (8, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (27, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (21, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (17, {'self_paid': <AppointmentAvailability.AVAILABLE: 'Available'>, 'government_paid': <AppointmentAvailability.NO_DATA: 'No data'>}), (10, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (1, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.AVAILABLE: 'Available'>}), (13, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>}), (14, {'self_paid': <AppointmentAvailability.UNAVAILABLE: 'Unavailable'>, 'government_paid': <AppointmentAvailability.AVAILABLE: 'Available'>}), (28, {'self_paid': <AppointmentAv…
cdc.gov.tw
感謝資訊更新 但我想再補充一下,在高危險區域內的醫院 需要被特別標示嗎?還是說就不鼓勵前往?
vaxx.tw
台灣新冠肺炎自費疫苗資訊 Taiwan COVID-19 Vaccination Information
台灣31家醫院COVID-19疫苗名額的現時資訊 Real-time Data about COVID-19 Vaccination Appointments in Taiwan.
g0v.hackmd.io
我覺得最理想的系統是像英國或美國各州-- 疫苗名額可以透過一個統一的網站掛號。 可以參考一下: • <https://www.nhs.uk/conditions/coronavirus-covid-19/coronavirus-vaccination/book-coronavirus-vaccination/> • <https://covid19.ca.gov/vaccines/>
g0v.hackmd.io
HackMD
#vaccine 頻道線上會議共筆 20210518 - HackMD
# #vaccine 頻道線上會議共筆 20210518 :::info - 本篇共筆連結:<https://g0v.hackmd.io/@kiang/covid19-vaccine-202105>
meet.google.com
Real-time meetings by Google. Using your browser, share your video, desktop, and presentations with teammates and customers.
HackMD
#vaccine 頻道線上會議共筆 20210518 - HackMD
# #vaccine 頻道線上會議共筆 20210518 :::info - 本篇共筆連結:<https://g0v.hackmd.io/@kiang/covid19-vaccine-202105>
reurl.cc
登入this.gbar_=this.gbar_||{};(function(_){var window=this; try{ _.Ed=function(a,b,c){if(!a.o)if(c ins...
#57 Possibly Incorrect Info Regarding 2nd Self-Paid Dose
*Possible Issue* > If you previously got your first dose through this program, you can schedule your second shot directly with your hospital. I can't find any official reference to support this statement. Do you happen to have a citation for this? According to the <https://www.cdc.gov.tw/Bulletin/Detail/nZc6uAxPYwXo_STQvcpEeg?typeid=9|official CECC announcement> on 5/15, it states: > 後續視國內疫情狀況及疫苗進口數量,再行調撥疫苗,提供出國民眾自費接種使用 This seems to only indicate that, in the future, they will reconsider and _possibly_ allocate doses to the self-paid program using two factors: (1) the state of the pandemic; and (2) the number of vaccine doses that are imported. *Possible Change* Perhaps a link to the official CECC announcement regarding this should be provided instead of asserting whether or not someone can book a second shot. Something like: ``` For more information, please refer to the official CECC announcement. ```
https://miro.com/
Sign up | Miro | Online Whiteboard for Visual Collaboration
Scalable, secure, cross-device and enterprise-ready team collaboration whiteboard for distributed teams. Join 10M+ users from around the world
vaxx.tw
台灣新冠肺炎自費疫苗資訊 Taiwan COVID-19 Vaccination Information
台灣31家醫院COVID-19疫苗名額的現時資訊 Real-time Data about COVID-19 Vaccination Appointments in Taiwan.
HackMD
台灣醫療院所 COVID-19 疫苗施打資訊平台討論共筆 - HackMD
# 台灣醫療院所 COVID-19 疫苗施打資訊平台討論共筆 `by kjcl` ![](<https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-im>
wikidata.org
National Cheng Kung University Hospital
university hospital in Tainan
cdc.gov.tw
Facebook Groups
本社團主要宗旨為:傳遞正確的疫情消息 由民眾提問 - 醫師解惑 - 將資訊彙整。 「實證醫學救台灣」來自台灣各地的住院醫師組成的團隊,在疫情期間持續翻譯國際防疫相關文獻,協助解答疫情迷思,幫助台灣挺過疫情。 :speaking_head_in_silhouette: 民眾提問 歡迎民眾提出任何關於疫情相關的疑問 :female-doctor::skin-tone-2:醫師解惑 我們將邀請有專業醫療背景的醫生解惑 :bookmark_tabs:資訊彙整 彙整現有的疫情相關資訊,持續傳遞正確消息.
Facebook Groups
【防疫資訊大補帖】 此處整理網路上 #正確 的中文防疫資訊, 歡迎在留言處補充你看到的優質防疫資訊,附上出處,並用 hashtag 註明類別, 如 #疫苗 #篩檢 #居家防疫 #中藥 等 :wavy_dash: |疫苗資訊:syringe:| # Dcard 疫苗懶人包|<https://bit.ly/3bGDasM> # 德國之聲疫苗介紹影片|<https://bit.ly/3ysXR5y> # Esen...
#70 translate the UI into Japanese
We have translated the UI into Japanese.
g0v.hackmd.io
莫德納疫苗要考慮冷鍊, 要知道離開極低溫多久以後還能打, 才能決定能否在診所打
詢問 CECC 是否接收混打疫苗 ( eg: AZ + 莫德納 )
聯合新聞網
零接觸就醫再升級!穩定病人慢箋回診可用電話診療 | 聯合新聞網:最懂你的新聞網站
本土疫情嚴峻,大醫院門診降載、暫停非必要醫療,許多慢性病患也不敢回診領藥,健保署昨宣布即起訪寬全民都可使用4012家院所...
Nature
Mix-and-match COVID vaccines trigger potent immune response
Preliminary results from a trial of more than 600 people are the first to show the benefits of combining different vaccines.
武漢肺炎 新冠肺炎 COVID-19-民視數位專題
【最新疫情】台灣首現社區感染!圖解確診關係、足跡|專題|民視新聞網
武漢肺炎(新冠肺炎、COVID-19)疫情在全球持續升溫,民視新聞特別製作武漢肺炎專題,運用各式圖表,提供「世界疫情地圖」、「台灣疫情整理」、「各國防疫措施」等,讓讀者能即時掌握疫情資訊。
Reuters
Factbox: Countries weigh 'mix and match' COVID-19 vaccines
A growing number of countries are looking at switching to different COVID-19 vaccines for second doses amid supply delays and safety concerns that have slowed their vaccination campaigns.
whenisgood.net
WhenIsGood: g0v vaxx.tw 2.0 規劃
Plan the time to have your meeting or event by co-ordinating availability with all the particpants using this fuss-free online tool.
HackMD
台灣醫療院所 COVID-19 疫苗施打資訊平台討論共筆 - HackMD
# 台灣醫療院所 COVID-19 疫苗施打資訊平台討論共筆 `by kjcl` ![](<https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-im>
Zulip
先承認你就是 沒有人
嗨大家, <#C020EQ0R8TW|vaccine> 的坑主~ 我是想試一試看能不能把部分的通訊改換到 ZULIP,因為覺得不用擔心失去通訊紀錄而且覺得更適合開放模式的溝通。 <@U0225DX9PLK> 是我的大學學長也是 ZULIP 的一位職業工程師。我很高興他願意跳坑幫忙我們。希望這個 Bridge 的 Setup 會順利~ Zulip 開源 project 溝通方式是自己的一個 Zulip server. 上面有20,000多個參與者。他們現在正在開始翻譯台灣華語。如果有興趣的話可以去 <https://chat.zulip.org/#narrow/stream/377-translation.2Fzh_tw> 看一下
Zulip
Team chat with first-class threading
Most team chats are overwhelming to keep up with. Zulip takes a different approach.
https://miro.com/
Sign up | Miro | Online Whiteboard for Visual Collaboration
Scalable, secure, cross-device and enterprise-ready team collaboration whiteboard for distributed teams. Join 10M+ users from around the world
meet.google.com
Real-time meetings by Google. Using your browser, share your video, desktop, and presentations with teammates and customers.
CalMatters
‘MyTurn’ website bypassed for most vaccine appointments | CalMatters
Billed as a one-stop shop, California’s $50 million site has instead created nonstop problems. Only 27% of vaccinations booked each day use MyTurn.
蘋果新聞網
AZ疫苗開打!民眾排隊人山人海 700公尺人龍繞醫院一圈 | 蘋果新聞網 | 蘋果日報
北市聯合醫院陽明院區今早出現大排長龍狀況,原來是疫苗開打,現場排隊人山人海!胸腔科醫師蘇一峰在臉書發文,貼出現場排隊醫院一圈,還排到對面國小的狀況,以GoogleMap初步量測陽明院區一周,粗估排隊施打疫苗人龍綿延6、700公尺以上。 《蘋果新聞網》也接獲民眾爆料指出,「柯文...
Creatrip
減少疫苗浪費!韓國明起可透過APP查詢住家周邊疫苗數量,即可立刻預約接種