반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- array
- 파이썬
- django
- PANDAS
- Google Excel
- c#
- Java
- math
- numpy
- dataframe
- google apps script
- gas
- GIT
- hive
- string
- PostgreSQL
- Apache
- list
- PySpark
- Kotlin
- Redshift
- matplotlib
- Github
- Mac
- Google Spreadsheet
- Excel
- Python
- Tkinter
- SQL
Archives
- Today
- Total
목록fake_useragent (1)
달나라 노트

import requests from bs4 import BeautifulSoup as bs URL = "https://www.naver.com" rq = requests.get(URL) soup = bs(rq.content, 'html.parser') print(soup) 어떤 Web 페이지의 HTML 코드를 가져오기 위해선 위처럼 requests와 bs4 libarary를 사용합니다. URL = "https://www.naver.com" rq = requests.get(URL) 위 부분은 정해진 URL에 대한 웹 자원을 요청하여 가져오는 역할을 합니다. soup = bs(rq.content, 'html.parser') print(soup) 그리고 BeautifulSoup의 기능을 사용합니다. 먼저 r..
Python/Python ETC
2021. 1. 23. 19:50