'Code'에 해당되는 글 3건

  1. 2014.12.15 Python 한글
  2. 2014.06.19 installing easy_install 1
  3. 2014.06.19 scrapy???
Code/Python2014. 12. 15. 17:43

#!/usr/bin/python
# -*- coding: 949 -*-

위와 같이 949 혹은 cp949 ms949... 등과 같이 선언하면 됨.

그러나! 

ubuntu에서는 'SyntaxError: 'cp949' codec can't decode bytes in position 20-21: illegal multibyte sequence' 와 같은 에러가 발생 함.


ubuntu의 한글코드 기본값이 utf-8이므로,
파이썬 코드를 편집할 때 첫째줄에
# -*- coding:utf-8 -*-
을 추가하시면 됩니다.   (출처 : "https://kldp.org/node/81708")

Posted by Joe.C
Code/WebCrawling2014. 6. 19. 17:11

http://peak.telecommunity.com/dist/ez_setup.py

file download and run with su

ez_setup.py


'Code > WebCrawling' 카테고리의 다른 글

scrapy???  (0) 2014.06.19
Posted by Joe.C
Code/WebCrawling2014. 6. 19. 16:29

I need.... Web Crawling. try to use Scrapy

http://scrapy.org/


What is Scrapy?

Scrapy is a fast high-level screen scraping and web crawling framework, used to crawl websites and extract structured data from their pages. It can be used for a wide range of purposes, from data mining to monitoring and automated testing.

'Code > WebCrawling' 카테고리의 다른 글

installing easy_install  (1) 2014.06.19
Posted by Joe.C