from bs4 import BeautifulSoup

from urllib.request import urlopen


with urlopen('https://gall.dcinside.com/m/minergalls/7586') as response:

    soup = BeautifulSoup(response, 'html.parser')

    for anchor in soup.select("span.title_subject"):

        print(anchor.get_text())


이렇게 하니까 401 에러도 안 뜨고 그냥 아무것도 print 안 되고 마는데 뭐가 문제임? 예를 들어서 이 글 span.title_subject는 '디시 글 제목 크롤링 질문'이고 저 소스대로라면 '마이너 갤러리 마이너 갤러리에 오신 것을 환영합니다.'여서 이게 출력돼야 하는데... ㅠ