• 카테고리

    질문 & 답변
  • 세부 분야

    데이터 분석

  • 해결 여부

    미해결

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

21.05.08 16:02 작성 조회수 128

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)

답변 2

·

답변을 작성해보세요.

0

okjjang03님의 프로필

okjjang03

질문자

2021.05.10

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

0

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