-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (26 loc) · 5.64 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html><html lang="en-us"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>Hexo</title><meta name="description"><meta name="generator" content="Hexo"><meta name="author" content="DiceMono"><meta name="keywords"><meta name="HandheldFriendly" content="True"><meta name="MobileOptimized" content="320"><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1,user-scalable=0"><link rel="stylesheet" type="text/css" href="/styles/screen.css"><link rel="apple-touch-icon" sizes="57x57" href="/images/apple-touch-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/images/apple-touch-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/images/apple-touch-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/images/apple-touch-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/images/apple-touch-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/images/apple-touch-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/images/apple-touch-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/images/apple-touch-icon-152x152.png"><link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-180x180.png"><link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"><link rel="icon" type="image/png" sizes="96x96" href="/images/favicon-96x96.png"><link rel="icon" type="image/png" sizes="128x128" href="/images/favicon-128.png"><link rel="icon" type="image/png" sizes="196x196" href="/images/favicon-196x196.png"><meta name="msapplication-TileColor" content="#FFFFFF"><meta name="msapplication-TileImage" content="mstile-144x144.png"><meta name="msapplication-square70x70logo" content="mstile-70x70.png"><meta name="msapplication-square150x150logo" content="mstile-150x150.png"><meta name="msapplication-wide310x150logo" content="mstile-310x150.png"><meta name="msapplication-square310x310logo" content="mstile-310x310.png"><link rel="stylesheet" href="/css/prism.css" type="text/css"></head><body itemscope itemtype="https://schema.org/WebPage"><header itemscope itemtype="https://schema.org/WPHeader"><div class="logo"></div><h1><a href="/" alt="Hexo" title="Hexo" itemprop="headline">Hexo</a></h1><p itemprop="description"></p><nav itemscope itemtype="https://schema.org/SiteNavigationElement"><ul><li itemprop="name"><a href="/ " alt="home" title="home" itemprop="url">home</a></li><li itemprop="name"><a href="/articles" alt="articles" title="articles" itemprop="url">articles</a></li><li itemprop="name"><a href="/author" alt="author" title="author" itemprop="url">author</a></li></ul></nav><div class="space"></div></header><main itemscope itemtype="https://schema.org/Blog"><h4 class="page-title">Recent Articles</h4><a href="/2019/08/02/about-redis/" class="article"><article itemscope itemprop="blogPost" itemtype="https://schema.org/BlogPosting" class="item"><h2 itemprop="headline">about redis</h2><span class="post-meta"></span><p itemprop="text" class="post-excerpt">
</p></article></a><a href="/2019/05/15/django-standalone/" class="article"><article itemscope itemprop="blogPost" itemtype="https://schema.org/BlogPosting" class="item"><h2 itemprop="headline">django standalone</h2><span class="post-meta"></span><p itemprop="text" class="post-excerpt"># 피시방 목록 크롤링
def get_pcroom_table():
driver = webdriver.Chrome('./chromedriver')
driver.implicitly_wait(30)
url = "https://benq4ever.blog.me/221196878240"
driver.get(url)
driver.switch_to.frame(0)
</p></article></a><a href="/2019/04/26/Crawler-02-Selenium/" class="article"><article itemscope itemprop="blogPost" itemtype="https://schema.org/BlogPosting" class="item"><h2 itemprop="headline">Crawler-02-Selenium</h2><span class="post-meta"></span><p itemprop="text" class="post-excerpt">타겟 : https://benq4ever.blog.me/221196878240셀레니움으로 네이버 블로그 크롤링 하기
pip install selenium
https://sites.google.com/a/chromium.org/chromedriver/downloads셀레니움을 사용하기 위해선 먼저 드라이버를 설치해야한다. 위 링크에서 다운로드 받은 파일을 프로젝트 폴더에 넣어주자.
from s</p></article></a><a href="/2019/04/26/Crawler-01-requests/" class="article"><article itemscope itemprop="blogPost" itemtype="https://schema.org/BlogPosting" class="item"><h2 itemprop="headline">네이버 블로그 크롤링하기 01/</h2><span class="post-meta"></span><p itemprop="text" class="post-excerpt">이번 프로젝트의 목표는 네이버 블로그 포스트 본문을 긁어오는 게 목표이다파이썬으로 크롤링을 하기 위해서는 두 가지 도구가 필요하다.
requests
BeatifulSoup
requests는 말 그대로 요청이다. 브라우저가 서버에 요청하듯 파이썬을 이용해 해당 url의 정보를 get해온다.
BeatifulSoup는 requests를 이용해 가져온 html 소스에서 원하는 정보를 탐색하기 용</p></article></a><a href="/2019/04/25/Benq-start/" class="article"><article itemscope itemprop="blogPost" itemtype="https://schema.org/BlogPosting" class="item"><h2 itemprop="headline">README</h2><span class="post-meta"></span><p itemprop="text" class="post-excerpt">목적Html, css 구조 파악
크롤링 연습
데이터 베이스 연습(xslx, mySQL, csv)
지도 api 활용(Naver, Kakao, google)
기능 명세
크롤링
Selenium으로 Benq 네이버 블로그의 PC방 리스트를 가져온다.
데이터 저장
PC방 리스트를 xlsx, mySQL, csv 등으로 저장한다.
지도 데이터로 변환
</p></article></a></main></body></html>