Problem
requests 시, User-Agent 설정이 필요함.
Solution
headers = {'User-Agent': 'useragent'}
reqeusts.post(url='url', headers=headers, timeout=6)
URL
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=kiddwannabe&logNo=221185808375
'Python' 카테고리의 다른 글
[Python] 딕셔너리의 키와 기본 값을 저장하기 (0) | 2022.03.24 |
---|---|
[Python] 문자열 리스트를 정수 리스트로 변환 (0) | 2022.03.24 |
[Python] 두 딕셔너리의 합 구하기 (0) | 2022.02.08 |
[Python] list, set, dict, tuple (0) | 2021.12.22 |
[Python] Dictionary get value from key (0) | 2021.12.22 |