Git Product home page Git Product logo

bank-pipeline's People

Contributors

cyberjam avatar

Watchers

 avatar

bank-pipeline's Issues

예외 : 데이터가 없는 경우

image 645번째에서 멈췄으니 645번째가 무엇이고 어떤 경우인지 보자
  • 무엇인지
    image

    image 양남이 용의자!
  • 어떤 경우인지
    image

    • 정상적인 데이터
      image

자잘한 수정

  • docs
  • 경영등급 숫자만, 숫자로 형변환
  • 모듈 init.py

지역별 금고 목록 페이지 request 로딩이 길다.

URL = 'https://www.kfcc.co.kr/map/list.do?r1=서울&r2='
rq = requests.get(URL)
  1. 로딩이 너무 길어서 실행이 끝난건가 싶어 request 문구 이후 print를 찍어 보았지만 로딩이 긴 것이 맞았다.

    URL = 'https://www.kfcc.co.kr/map/list.do?r1=서울&r2='
    rq = requests.get(URL)
    print("로딩이 아니라면 나와야한다")
    
  2. 해당 페이지에 접속하여 네트워크 패킷이 post가 아닌가 싶었지만 get 맞다.
    image

  3. postman에서 그대로 get 요청을 해보았다. 400 error. 400 번대는 client 측 요청 잘못이다. 문구를 보니 block 어쩌구가 있다. 브라우저를 통한 접속이 아닐경우 접속을 막는 것인가? 그렇다면 headless로 selenium으로 해야하려나. 너무 거추장스럽다. request에서 끝장을 볼 방법을 찾아보자.
    image

  4. post 요청하듯 request header를 모두 넣어 request 날려보자.
    image
    image

  5. 원하던 데이터가 나왔다. 어떤 항목이 필수적으로 필요한지 추려보니 Host를 기입했어야 했다.
    image

  6. 그런데. postman에서는 되는데 스크립트 상에서는 왜 안되는거지..
    image

  7. 그냥 간단하게 spreadsheet의 importXML() 함수로 지점별 코드를 추출해야겠다.
    image

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.