#!/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 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()
'P': '16', 'Q': '17', 'R': '18', 'S': '19', 'T': '20', 'U': '21', 'V': '22', 'W': '23', 'X': '24', 'Y': '25', 'Z': '26' } return 'INDIRECT(ADDRESS(ROW(),' + index[col] + '))' a = Automation('sbi_usd') try: a.driver.get('https://www.sbisec.co.jp/') time.sleep(1) a.driver.find_element_by_name("user_id").send_keys(a.args.user) time.sleep(1) a.driver.find_element_by_name("user_password").send_keys( a.decrypt(a.args.password)) time.sleep(1) a.driver.find_element_by_name("ACT_login").click() time.sleep(3) a.driver.find_element_by_xpath("//img[@alt='口座管理']").click() time.sleep(3) a.driver.find_element_by_xpath(
#!/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_auto_out') try: a.driver.get('https://pc.autoinet.jp/') a.driver.find_element_by_name("userId").send_keys(a.args.user) a.driver.find_element_by_name("password").send_keys( a.decrypt(a.args.password)) a.driver.find_element_by_name("login").click() time.sleep(1) a.driver.find_element_by_name("passNo").send_keys( a.decrypt(a.args.password2)) a.driver.find_element_by_name("btnWireOut").click() time.sleep(1) price = a.driver.find_element_by_xpath( "//*[.='精算可能金額']/../td[1]").text.replace('円', '') a.driver.find_element_by_name("wireOutAmount").send_keys(price) a.driver.find_element_by_name("refer").click() time.sleep(1) a.driver.switch_to.alert.accept() time.sleep(5) a.driver.quit() except: a.exit_on_err()
#!/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 import time a = Automation('sbi') try: a.driver.get('https://www.sbisec.co.jp/') a.driver.find_element_by_name("user_id").send_keys(a.args.user) a.driver.find_element_by_name("user_password").send_keys( a.decrypt(a.args.password)) a.driver.find_element_by_name("ACT_login").click() time.sleep(3) for i in range(5): a.driver.find_element_by_xpath("//img[@alt='ホーム']").click() a.driver.find_element_by_xpath("//img[@alt='国内株式']").click() a.driver.find_element_by_link_text("IPO・PO").click() try: a.driver.find_element_by_xpath( "//img[@alt='新規上場株式ブックビルディング / 購入意思表示']").click() except: a.driver.quit() try: a.driver.find_element_by_xpath("//img[@alt='申込']").click() except: break a.driver.find_element_by_name("suryo").send_keys("30000") a.driver.find_element_by_id("strPriceRadio").click() a.driver.find_element_by_id("ipoRadio1").click()
#!/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)
#!/usr/bin/python3 from common import Automation from selenium.webdriver.common.keys import Keys import sys import time a = Automation('rakuten_boat') try: a.driver.get('https://www.boatrace.jp/owpc/pc/login?authAfterUrl=/') a.driver.find_element_by_name("in_KanyusyaNo").send_keys(a.args.user) a.driver.find_element_by_name("in_AnsyoNo").send_keys( a.decrypt(a.args.password)) a.driver.find_element_by_name("in_PassWord").send_keys( a.decrypt(a.args.password2)) a.driver.find_element_by_xpath("//button[text()='ログインする']").click() a.driver.find_element_by_xpath("//a[text()='投票']").click() handle_array = a.driver.window_handles a.driver.switch_to.window(handle_array[-1]) try: a.driver.find_element_by_id("newsoverviewdispCloseButton").click() except: pass a.driver.find_element_by_xpath("//a/span[text()='入金・精算']").click() a.driver.find_element_by_xpath("//a[text()='入金する']").click() a.driver.find_element_by_id("chargeInstructAmt").send_keys('1') a.driver.find_element_by_id("chargeBetPassword").send_keys( a.decrypt(a.args.store)) a.driver.find_element_by_xpath( "//div[@id='payment']//a[text()='入金する']").click() a.driver.find_element_by_id("ok").click()
#!/usr/bin/python3 from common import Automation from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains import sys import time import re a = Automation('pairs') try: a.driver.get('https://pairs.lv/#/login') a.driver.find_element_by_xpath("//span[.='Facebookでログイン']").click() handle_array = a.driver.window_handles a.driver.switch_to.window(handle_array[-1]) a.driver.find_element_by_id("email").send_keys(a.args.user) a.driver.find_element_by_id("pass").send_keys(a.decrypt(a.args.password)) a.driver.find_element_by_id("loginbutton").click() time.sleep(3) a.driver.switch_to.window(handle_array[0]) try: for i in range(4): a.driver.find_element_by_xpath("//*[.='無料で']").click() time.sleep(3) except: pass a.driver.get('https://pairs.lv/search') for i in range(1, 500): if i % 10 == 0:
#!/usr/bin/python3 from common import Automation from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys import sys import time a = Automation('rakuten_keirin') def click(target): actions = ActionChains(a.driver) actions.move_to_element(target) actions.perform() a.driver.execute_script("window.scrollBy(0, 100);") target.click() try: a.driver.get('http://keirin.jp/pc/top') a.driver.find_element_by_id("trtxtBallotID").send_keys(a.args.user) a.driver.find_element_by_id("trtxtBallotPW").send_keys( a.decrypt(a.args.password)) a.driver.find_element_by_xpath("//input[@value='ログイン']").click() time.sleep(1) click(a.driver.find_element_by_xpath("//button[text()='入 金']")) a.driver.find_element_by_id("UNQ_orexpandText_12").send_keys('1') time.sleep(1) a.driver.find_element_by_id("UNQ_orbutton_36").click() a.driver.find_element_by_name("UNQ_pfInputText_14").send_keys( a.decrypt(a.args.password2))
#!/usr/bin/python3 from common import Automation from selenium.webdriver.common.keys import Keys import sys import time a = Automation('rakuten_chariloto') try: a.driver.get('https://www.chariloto.com/login?new=1') a.driver.find_element_by_id("chariloto_id").send_keys(a.args.user) a.driver.find_element_by_id("password").send_keys( a.decrypt(a.args.password)) a.driver.find_element_by_xpath("//button/i[@class='ico ico-key']").click() a.driver.find_element_by_xpath("//a//span[contains(text(), '入金')]").click() a.driver.find_element_by_id("js-input").send_keys('10') a.driver.find_element_by_xpath("//input[@value='確認']").click() a.driver.find_element_by_id( "mypage_bank_statement_deposit_form_pincode").send_keys( a.decrypt(a.args.password2)) a.driver.find_element_by_xpath("//input[@value='実行']").click() time.sleep(5) except: a.exit_on_err() a.driver.quit()