This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:UTF-8 | |
import requests, re, json, os | |
from datetime import datetime | |
os.environ['TZ'] = 'ROC' | |
html = requests.get('http://www.femh.org.tw/research/news_op.aspx') | |
update_time =re.findall(u'日期:(.*)</span>',html.text) | |
update_time.append( datetime.now().strftime('%p') ) | |
update_time = ' '.join(update_time) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:UTF-8 | |
import requests, re, json, os | |
from datetime import datetime | |
os.environ['TZ'] = 'ROC' | |
html = requests.get('http://www.pohai.org.tw/pohai/bedqty_er/bedqty_er.php') | |
html.encoding='utf8' | |
update_time = re.findall(u'日期:(.*)</td>',html.text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:UTF-8 | |
import requests, re, json, os | |
from datetime import datetime | |
os.environ['TZ'] = 'ROC' | |
html = requests.get('http://med.cgh.org.tw/unit/branch/Pharmacy/ebl/RealTimeInfoHQ.html') | |
html.encoding='big5' | |
update_time = re.findall(u'時間:(.*)</p>',html.text) | |
pending = re.findall(u':</td *>(.+?)</td>',html.text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:UTF-8 | |
import requests, re, json, os | |
from datetime import datetime | |
os.environ['TZ'] = 'ROC' | |
html = requests.get('http://www.wanfang.gov.tw/p11_information.aspx') | |
update_time = re.findall(u"日期:(.+?)</div",html.text)[0] | |
pending = re.findall(u"\'>(.+?)</div",html.text)[:-1] | |
# prase like ["<div class='p11_con'><div class='p11_icon05'>否", '1', '0', '16', '1'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:UTF-8 | |
import requests, re, json, os | |
from datetime import datetime | |
os.environ['TZ'] = 'ROC' | |
html = requests.get('http://www6.vghtpe.gov.tw/ERREALIFO/ERREALIFO.jsp') | |
html.encoding='big5' | |
pending = re.findall(u'">?(\w+)</font>',html.text) | |
full_reported = re.findall(u'體">?(.?)</font>',html.text)[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:UTF-8 | |
import requests, re, json, os | |
from datetime import datetime | |
os.environ['TZ'] = 'ROC' | |
html = requests.get('http://eng.shh.org.tw/ER_WEB/ER_WEB/Default.aspx') | |
html.encoding='utf8' | |
pending = re.findall(u'">(.*)</span>',html.text) | |
# prase like ['<b><font color="Red">未滿載</font></b>', '1', '0', '22', '0', '06:33:10'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ptyhon | |
#coding:UTF-8 | |
import requests, json, os | |
from datetime import datetime | |
os.environ['TZ'] = 'ROC' | |
html = requests.get('http://hlm.tzuchi.com.tw/html/HLinfo/Hlinfo.php') | |
pending = json.loads(html.text)[0] | |
# keys: ['m', 'WaitToPushBed', 'yy', 's', 'BedFull', 'WaitToAdm', 'WaitToDiagnosis', 'dd', 'mm', 'WaitToICU', 'h'] | |
full_reported = True if u'是' in pending['BedFull'] else False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:UTF-8 | |
import requests, re, json, os | |
os.environ['TZ'] = 'ROC' | |
html = requests.get('http://www1.ndmctsgh.edu.tw/ErOnlineNews/ErOnLineData.aspx') | |
pending = re.findall(u'd">(.+)</fon',html.text) | |
# prase like ['否', '3', '0', '9', '0'] | |
values = [ int(ele) for ele in pending[1:] ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:UTF-8 | |
import requests, re, json, os | |
from datetime import datetime | |
os.environ['TZ'] = 'ROC' | |
html = requests.get('http://www.tsmh.org.tw/~webapp/b/web_dg/er_status/er_show_db.php') | |
html.encoding='big5' | |
pending = re.findall(u': (.*?) 人',html.text) | |
# parse like ['1', '0', '4', '0'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"縣市":"台北市", | |
"編號":1, | |
"屬性":"私立", | |
"機構名稱":"臺北市私立常喜老人養護暨長期照護中心", | |
"負責人":"林彤恩", | |
"地址":"臺北市北投區清江里009鄰清江路100號2~6樓", | |
"電話":"02-28983138", | |
"立案日期":"93.01", |
OlderNewer