-
카테고리
-
세부 분야
데이터 분석
다음 시가총액 문제.
19.08.17 17:20 작성 조회수 25
0
삭제된 글입니다
답변을 작성해보세요.
0
YeonCheol Jang
질문자2019.08.17
from bs4 import BeautifulSoup
import re
import urllib.request as e
url = "https://www.daegu.ac.kr/article/DG159/list"
e = e.urlopen(url).read()
bs = BeautifulSoup(e, 'lxml')
top = bs.select("#sub_contents > div > table > tbody:nth-child(4) > tr")
for i, a in enumerate(top,1):
print(i, a.find("a").string)
심심해서 학교홈페이지 해보니까, 그건 또 잘 됩니다...
답변 1