scraping

Published by onesixx on

https://wikidocs.net/21879

파이썬에는 웹과의 소통을 편하게 해주는 requests라는 라이브러리

웹 scraping

  • TAG 셀렉터
  • ID 셀렉터
  • Class 셀렉터

id 있는경우

Python
Python
Python

id 없는 경우

Python
Python

웹 API

RestfulAPI

https://api.korbit.co.kr/v1/ticker/detailed?currency_pair=btc_krw

https://api.korbit.co.kr/v1/ticker/detailed?currency_pair=xrp_krw

Json –> Dictionary

Python
Python

브라우저에서만 볼수 있는 경우

Ajax (Asynchronous JavaScript and XML)로 데이터를 요청하는 것이기 때문

Python
Categories: quantPython Basic

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x