편집 기록

편집 기록
  • 프로필 편집요청빌런님의 편집
    날짜2020.03.21

    파이썬 크롤링 관련 질문 드립니다.


    from bs4 import BeautifulSoup
    from urllib.request import urlopen
    
    response = urlopen('https://www.naver.com/')
    soup = BeautifulSoup(response, 'html.parser')
    for anchor in soup.select("span.ah_k"):
        print(anchor)
    

    크롤링 공부중에 있는데 이 구간에서 네이버 실시간 검색어가 크롤링 되어서 나와야 하는데 실행시켜도 아무것도 나오지가 않네요 ㅠㅠ 왜 그런지 해결책좀 알려주시면 감사하겠습니다!

  • 프로필 알 수 없는 사용자님의 편집
    날짜2020.03.21

    파이썬 크롤링 관련 질문 드립니다.


    from bs4 import BeautifulSoup from urllib.request import urlopen

    response = urlopen('https://www.naver.com/') soup = BeautifulSoup(response, 'html.parser') for anchor in soup.select("span.ah_k"): print(anchor)

    크롤링 공부중에 있는데 이 구간에서 네이버 실시간 검색어가 크롤링 되어서 나와야 하는데 실행시켜도 아무것도 나오지가 않네요 ㅠㅠ 왜 그런지 해결책좀 알려주시면 감사하겠습니다!