강의

멘토링

커뮤니티

Inflearn Community Q&A

okjjang031925's profile image
okjjang031925

asked

Introduction to Python and Creating Various Automated Applications Using Web Crawling

How to use BeautifulSoup and Simple Web Parsing Practice (1) - Naver, Daum, Inflearn

스크레핑이 안되는 사이트 인가요?

Written on

·

221

0

이웹 저웹 돌아다니면서 

재미있게 공부 하는 중인데 

이사이트는 아예 안되는 것 같은데 

해결방법이 있는건지요?

import sys

import io

sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')

sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')

from bs4 import BeautifulSoup

import urllib.request as req

url= "http://land.mpsrb.com/offer/?cateid_group=0000&trade=2&areaid=001208"

res = req.urlopen(url).read()

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

print(">>", soup)

웹-크롤링python

Answer 2

0

okjjang03님의 프로필 이미지
okjjang03
Questioner

selenium 을 쓰지 않으려고 수강하고 있습니다. 

0

niceman님의 프로필 이미지
niceman
Instructor

뒤에 배울 selenium을 활용하시면 가능할 것 같습니다.

okjjang031925's profile image
okjjang031925

asked

Ask a question