[오토핫키] 네이버 요일 웹툰 제목과 매칭되는 클래스ID 파싱

2019. 2. 27. 16:49·오토핫키·

웹툰제목파싱.ahk

웹툰제목파싱.exe



URL:="https://comic.naver.com/webtoon/weekday.nhn"


winHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1") 

winHttp.Open("GET",URL) ;

winHttp.Send("") 

winHttp.WaitForResponse( ) ;


a:=winHttp.ResponseText 


;msgbox, %a%

;clipboard:=a


msgbox, % IndentScript(a)

Clipboard:= % IndentScript(a)

exitapp



IndentScript(LVData)

{

global IndentStr

pos = 1 ; 연속 서치를 위해


while(pos := RegExMatch(LVData, "sU)class=""title"" title=""(.*)"">" ; 제목

, match, pos + strlen(match)))

{

name_result = %name_result%`n%match1%

count := % A_index

}

StringSplit, name, name_result, `n


pos = 1


while(pos := RegExMatch(LVData, "U)titleId=(.*)onclick=" ; 클래스 아이디

, matcha, pos + strlen(matcha)))

{

matcha1 := RegExReplace(matcha1, "\D") ;숫자만 추출

id_result = %id_result%`n%matcha1%

}

StringSplit, id, id_result, `n


n=2

Loop

{

 ; 1은 빈줄이라 2부터 읽어오게함

 

mid_result :=  name%n% " : " id%n% 

if(n=2)

total_result = %mid_result%

else

total_result = %total_result%`n%mid_result%


if(n>count)

break


n++

}


return total_result


}

저작자표시 (새창열림)

'오토핫키' 카테고리의 다른 글

[오토핫키] 압축 및 압축해제 / Zip to File , File to Zip  (0) 2019.07.22
[오토핫키] 픽셀 값 DB처럼 저장하기  (0) 2019.03.26
[오토핫키] 한글 OCR  (0) 2019.02.08
[오토핫키] GUI 핫키 설정 예시  (0) 2018.05.02
[오토핫키] 내 컴퓨터 열기  (0) 2018.04.25
'오토핫키' 카테고리의 다른 글
  • [오토핫키] 압축 및 압축해제 / Zip to File , File to Zip
  • [오토핫키] 픽셀 값 DB처럼 저장하기
  • [오토핫키] 한글 OCR
  • [오토핫키] GUI 핫키 설정 예시
징쟝
징쟝
IT 관련 네트워크 및 기타 자료들을 수집하고 공유하는데 목적이 있음.
  • 징쟝
    네트워커의 보안 티스토리
    징쟝
  • 전체
    오늘
    어제
  • 블로그 메뉴

    • 홈
    • 글쓰기
    • 방명록
    • 분류 전체보기 (148) N
      • 정보보안 (54)
      • 리눅스 (10)
      • Windows (6)
      • Cisco (1)
      • Mikrotik (0)
      • Cyberoam (0)
      • Juniper (6)
      • MRTG (0)
      • Sophos (3)
      • SecuWiz (0)
      • Forti (0)
      • SECUI (1)
      • L4 (3)
      • 파이오링크 (0)
      • 오토핫키 (43)
      • 파이썬 (0)
      • 직장 (0)
      • 개인적인 것들 (9)
      • 그 외의 것들 (7) N
      • 영화 (0)
      • 테스트 (1)
      • 일기장 (0)
      • 쓰레기통 (3)
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    웹보안
    정보보안
    spoofing
    오토핫키
    php
    NAT
    MySQL
    웹해킹
    인젝션
    CSRF
    보안
    해킹
    SQL
    web
    HTML
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
징쟝
[오토핫키] 네이버 요일 웹툰 제목과 매칭되는 클래스ID 파싱
상단으로

티스토리툴바