새로운 웹 스크래핑과 Restaurant Detail Form의 모든 내용을 스크랩하여 더 이상 스크래핑을 진행할 수 없습니다. 결과는 빈리스트이므로Python 3.5.2 웹 스크래핑 - 목록이 범위를 벗어남
import requests
from bs4 import BeautifulSoup
import urllib
url = "https://www.foodpanda.in/restaurants"
r=requests.get(url)
soup=BeautifulSoup(r.content,"html.parser")
print(soup.find_all("Section",class_="js-infscroll-load-more-here")[0])
무엇이 문제입니까? –
IndexError : index index of range 로 오류가 발생했습니다. – aenish
추적에 대한 자세한 설명을 게시하십시오. 그리고 그 오류가 발생하면'soup.find_all ("Section", class _ = "js-infscroll-load-more-here")'는 빈 목록입니다. –