Git Product home page Git Product logo

11stmacro's Introduction

Selenium, OCR 사용

chrome.exe 위치에서
./chrome.exe --remote-debugging-port=9222 --user-data-dir="C:/trash"
실행, 크롬 디버거 모드 실행

자기 크롬 버전에 맞는 chromedirver.exe 필요

크롬 디버거 모드에서 이미지 로딩 끄기 설정

결제 페이지로 넘어갔을 때를 기준으로 ars 신청까지 0초 후반에서 1초 초반의 시간이 걸림
(구매 하기 버튼이 생긴 이후를 계산한게 아니라서 다른 매크로와 비교해 살짝 느릴 가능성이 존재함, 알 수 없음)

- 발전 가능한 부분

1. stckoptionNo 부분을 체크하고 가져와야한다. 그렇지 않으면 stkoption을 미리 조사해야함
1.1 bs4를 사용하면 된다는 힌트를 얻음




- 11번가 skpay 매크로 개발 시 필요했던것들

1. skpay 키 패드는 base64로 인코딩된 이미지 파일을 기반으로 정해짐
1.1 ex)[ 123_456789 ] 이런 방식의 이미지로 _ 부분이 skpay의 빈공간으로 정해짐
1.2 OCR을 통해 비밀번호를 알아내고 키패드의 위치를 찾아낸다.

2. skpay 결제 창으로 넘어갈 때 서버에서 지정한 임의의 시간초 이내로 빠르게 넘어갔을때 강제로 딜레이를 걸어버리는 매크로 방지 시스템이 생김 (3월 초)
2.1 skpay 결제창 넘어가기 버튼 앞에서 딜레이를 걸어주도록 바꿈
2.2 딜레이를 서버에서 임의로 지정하는 듯 보임, 통과되던 딜레이가 통과가 안되는 경우가 생김

11stmacro's People

Contributors

lunchon13 avatar

Stargazers

 avatar

Forkers

rhkdgh255

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.