안녕하세용. 컴퓨터 완전 초보입니다..
비트코인 거래량 보는 사이트가 깃허브에 있길래, 받아서 설명서 꾸역꾸역 읽어가며 로컬로 돌리고 있는데용.. ( 노드 / vue / npm serve run )
위에 표시한 누적거래량 수치를 파이썬 프로그램에서 받아와서 일정 수치에 도달시 알람을 만드려고 합니다.
근데, 파이썬으로 크롤링 해서 해당 수치를 받아오는 과정에서 문제가 생겼읍니다.
크롤링 하는 방법 검색해서 적용해 보았는데요
import urllib.request
from bs4 import BeautifulSoup
from urllib.request import urlretrieve #추가
import datetime
import time
# http://localhost:8080/8myu#
url ='http://localhost:8080/8myu#'
html = requests.get(url, headers = headers).text
soup = BeautifulSoup(html, 'html.parser')
#a = soup.find_all(class_="serp-item__link")
print(soup)
그런데, 웹 페이지가 머.. 타 프로그램 ( 자바 스크립트... ?? 확인하는 법도 모르겠어용 ) 을 통해 만들어 진 것인지?
출력 결과에 제가 찾는 자료가 나오질 않네용..?
도대체 어떻게 접근하면 좋을까요..?
간단한 방향성만 제시해 주시면 제가 검색해보도록 하겠습니다..
도움 부탁드립니다. 꾸벅! (--) (__)
출력 결과는 아래와 같습니다.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<meta content="width=device-width,initial-scale=1.0" name="viewport"/>
<title>SignificantTrades</title>
<meta content="Cryptocurrency aggregator" name="description"/>
<!-- Google Tag Manager -->
<script>
;(function(w, d, s, l, i) {
w[l] = w[l] || []
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' })
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : ''
j.async = true
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl
f.parentNode.insertBefore(j, f)
})(window, document, 'script', 'dataLayer', 'GTM-KLNCBF7')
</script>
<!-- End Google Tag Manager -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700|Roboto+Condensed:400" rel="stylesheet"/>
<link as="script" href="/js/app.js" rel="preload"/><link as="script" href="/js/chunk-vendors.js" rel="preload"/><link href="/img/icons/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png"/><link href="/img/icons/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png"/><link href="/manifest.json" rel="manifest"/><meta content="#43a047" name="theme-color"/><meta content="no" name="apple-mobile-web-app-capable"/><meta content="default" name="apple-mobile-web-app-status-bar-style"/><meta content="SignificantTrades" name="apple-mobile-web-app-title"/><link href="/img/icons/apple-touch-icon-152x152.png" rel="apple-touch-icon"/><link color="#43a047" href="/img/icons/safari-pinned-tab.svg" rel="mask-icon"/><meta content="/img/icons/msapplication-icon-144x144.png" name="msapplication-TileImage"/><meta content="#43a047" name="msapplication-TileColor"/></head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe height="0" src="https://www.googletagmanager.com/ns.html?id=GTM-KLNCBF7" style="display:none;visibility:hidden" width="0"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<noscript>
<strong>We're sorry but significanttrades doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script src="/js/chunk-vendors.js" type="text/javascript"></script><script src="/js/app.js" type="text/javascript"></script></body>
</html>
Process finished with exit code 0
초보 좀 도와주십시오 ㅠㅠ
ㅠㅠ 저거 어려운건가요..?
그니까 저 리턴을 받았는데 먼말인지 모르겠다고 ??
리턴을 파이썬으로 받아와야하는데.. beautiful soup 를 써서 받아오면 안나온다는 내용입니다.. 왜일까요 .. ㅜㅜ
파이썬으로 받아온다는게 먼말이야 ??
아니그니까..이미파이썬으로받아온거아니야 ??
1시간 누적 물량 자료에 보면 매수 681.4M / 매도 745.8M 자료가 매 순간 갱신되는데용.
파이썬으로 받아오는 법을 모르겠어요 ㅠㅠ
beautiful soup 로 웹페이지 html을 받아왔는데
왜 저 수치가 없죠 ??
저 수치들이 크롬에서 F12 누르면 나오는데, 파이썬 beautiful soup 로 받아오면 없는 이유는 무엇일가요??