1. mongo_connection.py HOSTNAME = "localhost" PORT = 27017 import pymongo client = pymongo.MongoClient(HOSTNAME, PORT) db = client.test collection = db.python def save(title, directorList, castList): collection.save({"title": title, "director": directorList, "cast": castList})MongoDB에 넣기 위해 위와 같이 mongo_connection.py 파일을 만든다. HOSTNAME은 당연히 자기 컴퓨터에 데이터에 넣을 것이므로 localhost를 쓰고, 기본적으로 MongoDB 포트는 270..
파이썬으로 쉽게 크롤러를 만들 수 있어, 간단한 네이버 영화 크롤러를 만들어보았다. 123456789101112131415161718192021222324252627282930313233# importfrom bs4 import BeautifulSoupfrom urllib.request import urlopen url = urlopen("https://movie.naver.com/movie/running/current.nhn")bs = BeautifulSoup(url, 'html.parser')body = bs.body target = body.find(class_="lst_detail_t1")list = target.find_all('li')no = 1for n in range(0, len(list)..
- Total
- Today
- Yesterday
- 스프링시큐리티
- java
- springsecurity
- BeautifulSoup
- Spring
- kubernetes
- 자바스크립트
- springboot
- Minikube
- docker
- 톰캣
- MongoDB
- 파이썬
- jenkins
- JavaScript
- AWS
- 오라클
- 스프링부트
- MySQL
- nodejs
- mariadb
- 스프링
- 쿠버네티스
- 도커
- 크롤링
- 쿼리
- oracle
- 젠킨스
- k8s
- 마리아디비
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |