#!/usr/bin/python3 from common import Automation import sys a = Automation('daiwa') try: a.driver.get('https://www.daiwa.jp/') a.driver.find_element_by_link_text("ログイン").click() a.driver.find_element_by_id("putbox1").send_keys(a.args.store) a.driver.find_element_by_id("putbox2").send_keys(a.args.user) a.driver.find_element_by_id("putbox3").send_keys(a.decrypt( a.args.password)) a.driver.find_element_by_xpath("//input[@value='ログイン']").click() for i in range(5): a.driver.find_element_by_link_text("新規公開/公募売出").click() a.driver.find_element_by_link_text("新規公開株式").click() a.driver.find_element_by_link_text("抽選参加申込").click() try: a.driver.find_element_by_link_text("はい").click() a.driver.find_element_by_name("RADIO_DATA").click() except: break a.driver.find_element_by_name("確認へ").click() a.driver.find_element_by_xpath("//input[6]").click() a.driver.find_element_by_name("ANSHO_NO").send_keys( a.decrypt(a.args.password2)) a.screenshot() a.driver.find_element_by_name("MOUSIKOMI").click() a.screenshot()
#!/usr/bin/python3 from common import Automation import sys from selenium.webdriver.common.keys import Keys a = Automation('smbc_nikko') try: a.driver.get('https://trade.smbcnikko.co.jp/Login/0/login/ipan_web/hyoji/') a.driver.find_element_by_id("padInput0").send_keys(a.args.store) a.driver.find_element_by_id("padInput1").send_keys(a.args.user) a.driver.find_element_by_id("padInput2").send_keys(a.decrypt(a.args.password)) a.driver.find_element_by_name("logIn").click() a.driver.get('https://trade.smbcnikko.co.jp/MoneyManagement/9404K0821255/ez_ipo/meigara/ichiran') ipo_list = [] try: ipo_list = a.driver.find_elements_by_xpath("//img[@alt='需要申告受付中']") except: pass for i in range(len(ipo_list)): a.driver.get('https://trade.smbcnikko.co.jp/MoneyManagement/9404K0821255/ez_ipo/meigara/ichiran') a.driver.find_elements_by_xpath("//img[@alt='需要申告受付中']")[i].click() a.driver.find_element_by_id("mcChk").click() a.driver.find_element_by_xpath("//input[@alt='次へ']").click() try: a.driver.find_element_by_name("snkokSu").send_keys('1') a.driver.find_element_by_name("snkokKakaku").click() a.driver.find_element_by_name("snkokKakaku").send_keys(Keys.ARROW_DOWN) a.driver.find_element_by_name("snkokKakaku").send_keys(Keys.ENTER)
#!/usr/bin/python3 from common import Automation from selenium.webdriver.common.keys import Keys import sys import time a = Automation('rakuten_oddspark') try: a.driver.get( 'https://www.oddspark.com/OpTop.do?SSO_FORCE_LOGIN=1&SSO_URL_RETURN=https://www.oddspark.com/' ) a.driver.find_element_by_name("SSO_ACCOUNTID").send_keys(a.args.user) a.driver.find_element_by_name("SSO_PASSWORD").send_keys( a.decrypt(a.args.password)) a.driver.execute_script("formSubmit();") try: a.driver.find_element_by_name("INPUT_PIN").send_keys( a.decrypt(a.args.password2)) a.driver.find_element_by_name("送信").click() except: pass a.driver.get('https://www.oddspark.com/auth/NyukinMenu.do') a.driver.find_element_by_xpath("//a[.='入金する']").click() a.driver.find_element_by_name("nyukin").send_keys('1') a.driver.find_element_by_xpath("//a[.='次へ']").click() a.driver.find_element_by_name("touhyoPassword").send_keys( a.decrypt(a.args.password2)) a.driver.find_element_by_xpath("//a[.='入金']").click() time.sleep(5)
#!/usr/bin/python3 from common import Automation from selenium.webdriver.common.keys import Keys import sys import time a = Automation('rakuten_keiba') try: a.driver.get('https://bet.keiba.rakuten.co.jp/bank/deposit/') a.driver.find_element_by_id("loginInner_u").send_keys(a.args.user) a.driver.find_element_by_id("loginInner_p").send_keys( a.decrypt(a.args.password)) a.driver.find_element_by_class_name("loginButton").click() a.driver.find_element_by_id("depositingInputPrice").send_keys('100') a.driver.find_element_by_id("depositingInputButton").click() a.driver.find_element_by_name("pin").send_keys(a.decrypt(a.args.password2)) a.driver.find_element_by_id("depositingConfirmButton").click() time.sleep(5) a.driver.quit() except: a.exit_on_err()
#!/usr/bin/python3 from common import Automation import sys a = Automation('nomura') try: a.driver.get('https://hometrade.nomura.co.jp/web/rmfIndexWebAction.do?loginType=1') a.driver.find_element_by_id("text01").send_keys(a.args.user) a.driver.find_element_by_id("passwd1").send_keys(a.decrypt(a.args.password)) a.driver.find_element_by_name("buttonLogin").click() try: # 最初のお知らせスキップ a.driver.find_element_by_name("buttonTop").click() except: pass for i in range(5): a.driver.find_element_by_link_text("取引").click() a.driver.find_element_by_link_text("IPO/PO").click() try: a.driver.find_element_by_xpath("//a[contains(text(), '抽選申込へ')]").click(); except: break checkboxes = a.driver.find_elements_by_xpath("//input[@type='checkbox']") for c in checkboxes: c.click() a.driver.find_element_by_xpath("//button[@name='buttonAgree']").click() a.driver.find_element_by_class_name("apl-js-cmspsp").click() a.driver.find_element_by_xpath("//button[@name='buttonAgree']").click() a.driver.find_element_by_xpath("//button[@name='buttonConfirm']").click()
#!/usr/bin/python3 from common import Automation from selenium.webdriver.common.keys import Keys import sys a = Automation('rakuten') try: a.driver.get('https://www.rakuten-sec.co.jp/') a.driver.find_element_by_id("form-login-id").send_keys(a.args.user) a.driver.find_element_by_id("form-login-pass").send_keys(a.decrypt(a.args.password)) a.driver.find_element_by_class_name("s3-form-login__btn").click() for i in range(5): a.driver.find_element_by_link_text("国内株式").click() a.driver.find_element_by_link_text("IPO(PO)に参加する").click() try: a.driver.find_element_by_xpath("//a[.='参加']").click() except: break a.driver.find_element_by_xpath("//input[contains(@value,'同意する')]").click() a.driver.find_element_by_name("value").send_keys('100') a.driver.find_element_by_name("price").click() a.driver.find_element_by_name("price").send_keys(Keys.ARROW_DOWN) a.driver.find_element_by_name("price").send_keys(Keys.ENTER) a.driver.find_element_by_xpath("//input[contains(@value,'確 認')]").click() a.driver.find_element_by_name("password").send_keys(a.decrypt(a.args.password2)) a.screenshot() a.driver.find_element_by_xpath("//input[contains(@value,'参加申込')]").click() a.screenshot() print("楽天証券IPO("+str(i)+")に申し込みました", file=sys.stderr)