강좌
클라우드/리눅스에 관한 강좌입니다.
프로그램 분류

파이썬기초124편 : BeautifulSoup 간단예제 02

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

import requests

from bs4 import BeautifulSoup


res = requests.get('http://comics.nate.com/webtoon/list.php?btno=48747&category=2')

soup = BeautifulSoup(res.text, "html.parser")

result = soup.find_all('span', attrs={'class': 'tel_img'})



image = result[0].find_all('img')

#print image


for i in range(0, len(image)):

    print image[i]['src']

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,035 명
  • 현재 강좌수 :  35,791 개
  • 현재 접속자 :  179 명