개발 환경 : Ubuntu 16.04.2 LTS, python3, postgresql 9.5 1. 가상 환경 세팅sudo apt-get install python-virtualenvvirtualenv --python=python3 myvenvsource myvenv/bin/activate 2. django 설치pip install django 3. django 시작django-admin startproject mysite . 4. 데이터베이스 설정mysite/settings.py- sqlite3 사용 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } ..
1. python3 소스 코드#_*_ coding:utf8 _*_ import urllib.request from bs4 import BeautifulSoup fp = urllib.request.urlopen('http://info.finance.naver.com/marketindex/exchangeList.nhn') source = fp.read() fp.close() class_list = ["tit","sale"] soup = BeautifulSoup(source,'html.parser') soup = soup.find_all("td", class_ = class_list) money_data={} for data in soup: if soup.index(data)%2==0: data=data.ge..
- Total
- Today
- Yesterday
- termcolor
- python color print
- tar 압축
- 우분투 tar
- 파이썬 병렬
- python3 파싱
- python3 환율 api
- multiprocess
- 우분트 프로세스 백그라운드
- python3
- docker 설치
- terminal print color
- 파이썬 웹파싱
- python3 환율
- 파이썬
- python multiprocess
- python queue
- 뉴스기사번역
- 파이썬3 크롤러
- python thread
- apt-get error
- python
- python web framework
- docker 사용법
- 파이썬 파싱
- 도커 설치
- 우분투
- 파이썬 user-agent
- multiprocessing
- 도커 사용법
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |