본문 바로가기
728x90

Python9

Python 파이썬 beautifulsoup[bs4] 활용해 영화 순위 크롤링하기 Python 크롤링 : beautifulsoup 활용 'request로 요청하고, beautifulsoup 으로 솎아낸다' BeautifulSoup 사용해 영화 순위 크롤링하기 영화 제목 크롤링 하기 import requests from bs4 import BeautifulSoup headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'} data = requests.get('https://movie.naver.com/movie/sdb/rank/rmovie.nhn?sel=pnt&date=20220127',hea.. 2022. 1. 27.
파이썬 jinja2.exceptions.TemplateNotFound 오류 해결 파이썬 jinja2.exceptions.TemplateNotFound 오류 해결 TemplateNotFound(template) rendering-templates 로 html파일을 불러오는 app.py 실행하려고 하니 TemplateNotFound(template) 오류가 나서 해결 방법을 찾아보았다. rendering-templates 설명 링크 참조 https://flask.palletsprojects.com/en/0.12.x/quickstart/#rendering-templates Quickstart — Flask Documentation (0.12.x) For web applications it’s crucial to react to the data a client sends to the ser.. 2022. 1. 13.
Python PYPI, 파이썬 비교연산자, 기본 조건문 모든 프로그래밍 언어는 입력 - 과정 - 출력 위주로 익히는 것이 좋다. Python's input - Process - output : keyboard - Process - monitor name = input('name :') message ='hi, '+name+' ....bye, '+name+'.' print(message) Python PYPI(Python Package Index) : Repository of software fot the Python programming language :: 파이썬으로 만들어진 패키지를 저장하고 검색할 수 있는 데이터베이스의 개념 내가 만든 패키지를 pypi에 업로드하면 다른 사람들이 pip 명령어를 통해 해당 패키지를 설치할 수 있기도 하다. 예) Pand.. 2022. 1. 9.
728x90