I'm currently studying web scraping, this is just for test! I have no idea why this error arose, would you look at the code what I did wrongly and help me to solve the issues?
from urllib.request import urlopen
from bs4 import BeautifulSoup as bs
from urllib.request import HTTPError
import sys
html = urlopen("https://www.expedia.co.kr/Hotel-Search?destination=서울&startDate=2019.06.06&endDate=2019.06.07&rooms=1&adults=2")
soup = bs(html,"html.parser")
section = soup.find_all(class_="cf flex-1up flex-listing flex-theme-light cols-nested")
card = soup.find_all(class_="flex-card")
infoprice = soup.find_all(class_="flex-content info-and-price MULTICITYVICINITY avgPerNight")
rows = soup.find_all(class_="flex-area-primary")
hotelinfo = soup.find_all('ul',class_="hotel-info")
hotelTitles = soup.find_all('li',class_="hotelTitle")
for hotelTitle in hotelTitles:
hotellist = hotelTitle.find('h4',class_="hotelName fakeLink")
h = hotellist.get.text().strip()
print(h)