Skip to content

Instantly share code, notes, and snippets.

Chinseok Lee allieus

Block or report user

Report or block allieus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import requests
from bs4 import BeautifulSoup
def get_realtime_keyword_list():
html = requests.get('').text
soup = BeautifulSoup(html, 'html.parser')
tag_list ='.PM_CL_realtimeKeyword_rolling .ah_item .ah_k')
keyword_list = [tag.text for tag in tag_list]
return keyword_list

pip의 경우

pip install 시, SSL 인증서 오류에 대한 대처

아래 코드로 pip 폴더를 생성하고

echo %APPDATA%\pip
allieus /
Last active May 6, 2019
인스타그램 인증 예시 by Ask Company
%matplotlib inline
from matplotlib import pyplot as plt
import numpy as np
x = np.arange(0, 10, 0.01)
plt.plot(x, np.cos(x))
plt.plot(x, np.sin(x))
View 네이버_실검_크롤링.py
import requests
from bs4 import BeautifulSoup
res = requests.get("")
html = res.text
soup = BeautifulSoup(html, 'html.parser')
tag_list ='.PM_CL_realtimeKeyword_rolling .ah_k')
for rank, tag in enumerate(tag_list, 1): # 항상 하위 block 전에 콤마(:)를 씁니다.
label = tag.text
View share_banner.html
<a href="" style="display: block;">
<img src="" style="border: 0; width: 250px;" />
allieus /
Last active Dec 3, 2018
교보문고 검색결과 크롤링 by Ask Company

keyword_encode 로직은 교보문고 페이지의 javascript 로직을 그대로 흉내내어 만들었습니다.


>>> search('파이썬')

Do it! 점프 투 파이썬
You can’t perform that action at this time.