'2017/05'에 해당되는 글 2건

  1. 2017.05.31 구글 검색용 pygoogle 에러
  2. 2017.05.04 Centos 5 Yum이 안될때

빅데이터 아카데미라는 교육 프로그램을 듣고, 과제 중입니다.

뉴스를 검색할 일이 있어서 구글 검색 결과를 클리핑 하려던 중 python의

pygoogle 이라는 라이브러리를 찾았습니다.

아나콘다 환경에서는 단순히 pip install pygoogle 로 설치가 가능합니다.


1. pygoogle 현재는 pygoogle-simple로 변경되었습니다.

 라이브러리에는 pygoogle과 pygoogle-simple이 두 가지 다 있지만, pygoogle은 동작하지 않습니다. 같은 버전인데 두 가지가 올라와 있네요.

2. 그런데, pygoogle도 아래와 같은 에러가 나며 현재 동작하지 않습니다.

pygoogle ERROR __search__| responseDetails : The Google Web Search API is no longer available. Please migrate to the Google Custom Search API (https://developers.google.com/custom-search/) 

3. 개발하신 분이 수정하신다고 했지만, 아직 안된것 같아요.

https://github.com/rnikhil275/pygoogle/issues/9

It seems like the Ajax api used in the module is deprecated. I am little busy now and I can migrate it to the new api in sometime. PR's are gladly welcome in the meanwhile. :) 


요약: pygoogle module은 2017.05.31일 현재 정상동작하지 않습니다.


감사합니다.

Posted by kkckc
,

얼마전 테스트용으로 사용하던 Centos 5 의 yum이 안되서 확인해보니,  공식적으로 지원이 종료 된 것 같습니다.


http://mirror.centos.org/centos-5/5/readme

This directory (and version of CentOS) is depreciated.  

CentOS-5 is now past EOL

You can get the last released version of centos 5.11 here:

http://vault.centos.org/5.11/

Please NOTE:  this is not being maintained for security since moving to Vault.
It will have security issues, you should upgrade to a new version instead.

MirrorList 도 사라졌으므로, /etc/yum.repos.d 의 CentOS-Base.repo를 아래와 같이 변경합니다.

CentOS-Base.repo

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
# http://vault.centos.org/?release=5&arch=i386&repo=os
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/5.11/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://vault.centos.org/5.11/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://vault.centos.org/5.11/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://vault.centos.org/5.11/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://vault.centos.org/5.11/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 

CentOS-Base.repo

CentOS-Base.repo


Posted by kkckc
,