지금 이 순간을 살아라

고정 헤더 영역

글 제목

메뉴 레이어

지금 이 순간을 살아라

메뉴 리스트

  • 홈
  • 책과의 대화
  • 프로그래밍 언어
  • 디지털 노마드
  • 맛집
  • 별자리
  • 분류 전체보기 (368)
    • 책과의 대화 (177)
    • 맛집 (46)
    • 사용기 (45)
    • 별자리 (15)
    • MBTI (17)
    • 영어공부 (4)
      • 영자 신문 헤드라인 (4)
    • 소프트웨어 (3)
    • 여행 (4)
    • 음악 (8)
      • 팝 (7)
    • 프로그래밍 언어 (43)
      • 파이썬 (16)
      • 웹 스크래핑 (21)
    • 디지털 노마드 (4)
    • 정보 (1)

검색 레이어

지금 이 순간을 살아라

검색 영역

컨텐츠 검색

파이썬 beautifulsoup4

  • [파이썬 웹 스크래핑] Beautifulsoup4 (쿠팡 노트북) - 6

    2020.09.04 by 별을 보는 사람

  • [파이썬 웹 스크래핑] Beautifulsoup4 (네이버 웹툰) - 4

    2020.09.02 by 별을 보는 사람

  • [파이썬 웹 스크래핑] Beautifulsoup4 (네이버 웹툰) - 3

    2020.09.01 by 별을 보는 사람

  • [파이썬 웹 스크래핑] Beautifulsoup4 (네이버 웹툰) - 2

    2020.08.31 by 별을 보는 사람

  • [파이썬 웹 스크래핑] Beautifulsoup4 (네이버 웹툰) - 1

    2020.08.29 by 별을 보는 사람

[파이썬 웹 스크래핑] Beautifulsoup4 (쿠팡 노트북) - 6

import requests import re # 정규식 관련 패키지 from bs4 import BeautifulSoup headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36"} for i in range(1, 6): print("페이지 :", i) url = "https://www.coupang.com/np/search?q=%EB%85%B8%ED%8A%B8%EB%B6%81&channel=user&component=&eventCategory=SRP&trcid=&traid=&sorter=scoreDesc&mi..

프로그래밍 언어/웹 스크래핑 2020. 9. 4. 18:25

[파이썬 웹 스크래핑] Beautifulsoup4 (네이버 웹툰) - 4

# beautifulsoup4 설치 : pip install beautifulsoup4 # lxml 설치 : pip install lxml # beautifulsoup 참고 사이트 : https://www.crummy.com/software/BeautifulSoup/bs4/doc.ko/ import requests from bs4 import BeautifulSoup # url = "https://comic.naver.com/webtoon/weekday.nhn" url = "https://comic.naver.com/webtoon/list.nhn?titleId=733766&weekday=mon" res = requests.get(url) res.raise_for_status() soup = Beautif..

프로그래밍 언어/웹 스크래핑 2020. 9. 2. 07:00

[파이썬 웹 스크래핑] Beautifulsoup4 (네이버 웹툰) - 3

# beautifulsoup4 설치 : pip install beautifulsoup4 # lxml 설치 : pip install lxml import requests from bs4 import BeautifulSoup url = "https://comic.naver.com/webtoon/weekday.nhn" res = requests.get(url) res.raise_for_status() soup = BeautifulSoup(res.text, "lxml") # 네이버 웹툰 전체 목록 가져오기 cartoons = soup.find_all("a", attrs={"class":"title"}) # a element 의 class 속성이 title 인 모든 element 를 반환 for cartoon i..

프로그래밍 언어/웹 스크래핑 2020. 9. 1. 07:00

[파이썬 웹 스크래핑] Beautifulsoup4 (네이버 웹툰) - 2

# beautifulsoup4 설치 : pip install beautifulsoup4 # lxml 설치 : pip install lxml import requests from bs4 import BeautifulSoup url = "https://comic.naver.com/webtoon/weekday.nhn" res = requests.get(url) res.raise_for_status() soup = BeautifulSoup(res.text, "lxml") # rank1 = soup.find("li", attrs={"class":"rank01"}) # print(rank1.a) # a 태그의 모든 속성을 출력 # # 복학왕-306화 광어인간 4화 # #print(rank1.a.get_text())..

프로그래밍 언어/웹 스크래핑 2020. 8. 31. 07:00

[파이썬 웹 스크래핑] Beautifulsoup4 (네이버 웹툰) - 1

# beautifulsoup4 설치 : pip install beautifulsoup4 # lxml 설치 : pip install lxml import requests from bs4 import BeautifulSoup url = "https://comic.naver.com/webtoon/weekday.nhn" res = requests.get(url) res.raise_for_status() soup = BeautifulSoup(res.text, "lxml") # print(soup.title) # print(soup.title.get_text()) # print(soup.a) # soup 객체에서 처음 발견되는 a element 출력 # print(soup.a.attrs) # a element 의 ..

프로그래밍 언어/웹 스크래핑 2020. 8. 29. 07:00

추가 정보

반응형

인기글

최신글

페이징

이전
1
다음
osFactory
지금 이 순간을 살아라 © osFactory
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바