This file contains hidden or 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
| from datetime import datetime,timezone | |
| import os | |
| def lambda_handler(event, context): | |
| # 転送先Aに転送する時間帯の開始時刻・終了時刻をUTCで定義 | |
| time_A_start_s = os.environ['time_A_start_s'] | |
| time_A_end_s = os.environ['time_A_end_s'] | |
| res = {'TransferBase' : switch_call_transfer(time_A_start_s,time_A_end_s)} | |
| print(res) |
This file contains hidden or 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
| import os | |
| import re | |
| import datetime | |
| import lxml.html | |
| import tweepy | |
| from time import sleep | |
| from selenium import webdriver | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| # 対象のツイートを定期チェックするデーモン化メソッド |
This file contains hidden or 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
| import os | |
| import tweepy | |
| from datetime import datetime | |
| def lambda_handler(event, context): | |
| # tweet environment | |
| consumer_key = os.environ['TW_CONSUMER_KEY'] | |
| consumer_secret = os.environ['TW_CONSUMER_SECRET'] | |
| access_token = os.environ['TW_ACCESS_TOKEN'] | |
| access_token_secret = os.environ['TW_ACCESS_TOKEN_SECRET'] |
This file contains hidden or 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
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| import lxml.html | |
| import pandas as pd | |
| import re | |
| import datetime | |
| from time import sleep | |
| from argparse import ArgumentParser |