Giter VIP home page Giter VIP logo

webpage-cralwer-and-excel-vba's Introduction

Webpage-Cralwer-AND-Excel-VBA

Webpage 에서의 표를 자동 추출하고 원하는 형태로 표 변환 😎

ezgif com-gif-maker (6)

구간도 많고 날짜도 마찬가지.
원하는 데이터가 많기에 일일이 수동으로 [ctrl+c] [ctrl+v] 하는 것엔 무리가 있을 것으로 판단 🙄
자동으로 크롤링 할때 필요한 코드 정리 & 원하는 데이터의 형태로 형변환

SUMMARY



테이블_크기변경(2)

접기/펼치기 버튼

[1] 웹페이지상에서의 날것의 표

구간별통계정보 _ 통계정보 _ 교통정보 경기도교통정보센터 - Chrome 2022-05-21 오전 9_45_48

[2] 해당 코드를 실행하고 난뒤..

image

table of contents

  • Webpagecrawler_final.ipynb 코드로 csv 파일 저장
  • Excel VBA.ipynb 매크로 이용 파일 형 변환
  • 통합문서 하나로 취합
  • Finish 👻

Webpagecrawler_final.ipynb 코드로 csv 파일 저장

https://gits.gg.go.kr/web/trafficInfo/webSectionStatistics.do?linename=101&linename2={}'.format(j)+
'&lineway=1&linedate=2020-07-{}'.format(i)+'&speedGraph=07

linename2 포맷팅 그리고 linedate 포맷팅


image image

파일 내용 😋

image


Excel VBA.ipynb 매크로 이용 파일 형 변환

(Excel VBA가 모듈에 저장되어 있는 상태에서)
파일 하나 열고 -> 개발도구 -> 삽입 -> 단추 -> 단추 삽입 -> 매크로 지정 -> Module2.매크로1 -> 버튼 클릭 🐠
-> 한 폴더안에 있는 파일들 모두 형변환됨 -> /통합문서 취합

[실행]

  1. 복사 붙여넣기 (transpose) image

  2. 테이블 아래 아래 셀에 =INDEX($B$53:$AQ$76,MOD(ROW(A1)-1,24)+1,QUOTIENT(ROW(A1)-1,24)+1)
    그리고 복사 붙여넣기 (값만)
    image

참고로 파일안의 폴더를 열고, 1번 2번 실행시키고 하는 것 모두
매크로로 자동으로 돌아가게 된다. 매크로이기는 하지만 클릭을 내가 몇 번 해야한다는 번거로움이 있다.
기회가 된다면 클릭한번으로 돌아가는 프로그램도 만들어봐야겠다............ 🔥

webpage-cralwer-and-excel-vba's People

Contributors

7rohj avatar

Watchers

 avatar

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.