imort 박뉴프

HTTP 403 - HTTP 크롤링 오류 본문

Develop/Error Correction

HTTP 403 - HTTP 크롤링 오류

박뉴프 2022. 10. 15. 14:37

BeautifulSoup을 이용해 웹사이트 크롤링을 했을 때,

 

다음과 같이 HTTP 403 오류가 뜬다면 아래의 코드를 입력해서 해결할 수 있다.

url = "www.example.com"
requests.get(url, headers={ "User-Agent": "Mozilla/5.0" })

🔍 블로그 https://parkmj236.tistory.com

🔍 Notion 이력서 https://branch-frog-b20.notion.site/Park-Minji-e4fa8aa44b8c48b582a9082515dbc15e

🔍 Github https://github.com/Park-New-project/Projects


참고

'Develop > Error Correction' 카테고리의 다른 글

NodeJS MySQL [ER_NOT_SUPPORTED_AUTH_MODE] 오류  (0) 2024.01.21
Nginx - 웹사이트 크롤링 거부  (0) 2022.11.10
Comments