kentoku24 / desknetsnotifier Goto Github PK
View Code? Open in Web Editor NEWデスクネッツの今日のスケジュールをSlackへpush通知します
デスクネッツの今日のスケジュールをSlackへpush通知します
eosbot作ったときの感じで、予定の5分前になったらSlackに通知を送信
現在同じリマインダについて削除→追加ってやってるので完了ボタンを押してても押して無くても削除されてしまう、と思われる。既に入っている同じ時間、同じタイトルのリマインダは触らない方がよいかも
できればボタンを押して場所までとりたい。。。!
title:新商品チームMTG, start_time:2018-02-13 18:00:00, end_time:2018-02-13 19:00:00, location:18-1 【18-2】会議室(12名
)
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\urllib3\connectionpool.py", line 595, in urlopen
self._prepare_proxy(conn)
File "C:\Python36\lib\site-packages\urllib3\connectionpool.py", line 816, in _prepare_proxy
conn.connect()
File "C:\Python36\lib\site-packages\urllib3\connection.py", line 294, in connect
self._tunnel()
File "C:\Python36\lib\http\client.py", line 919, in _tunnel
message.strip()))
OSError: Tunnel connection failed: 407 Proxy Authorization Required.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "C:\Python36\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "C:\Python36\lib\site-packages\urllib3\util\retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='slack.com', port=443): Max retries exceeded with url: /api/
reminders.list (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authoriza
tion Required.',)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "jmottoScraper.py", line 192, in
token=SLACK_TOKEN
File "C:\Python36\lib\site-packages\slackclient\client.py", line 85, in api_call
result = json.loads(self.server.api_call(method, timeout=timeout, **kwargs))
File "C:\Python36\lib\site-packages\slackclient\server.py", line 251, in api_call
return self.api_requester.do(self.token, method, kwargs, timeout=timeout).text
File "C:\Python36\lib\site-packages\slackclient\slackrequest.py", line 85, in do
proxies=self.proxies)
File "C:\Python36\lib\site-packages\requests\api.py", line 112, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Python36\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python36\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python36\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "C:\Python36\lib\site-packages\requests\adapters.py", line 502, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='slack.com', port=443): Max retries exceeded with url: /api/re
minders.list (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authorizati
on Required.',)))
大変だしセキュリティ的にNGかも
ここのページ
https://gws44.j-motto.co.jp/cgi-bin/JM0344760/dneo.cgi?cmd=schindex&log=on#cmd=schweekgrp
の div class = "sch-gweek sch-cal-group-week jsch-cal-list jco-print-template"
以下要素を回すと色々取れる?
自分 div class = "sch-gcal-target me cal-h-cell jsch-cal"
グループ div class = "sch-gcal-target group cal-h-cell jsch-cal"
そのほか div class = "sch-gcal-target other cal-h-cell jsch-cal"
firefoxのcss pathって機能が一番使えるかも
#8 で多少リファクタ
k-matsunamiとか入ってるのはダサい
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.