资源简介
这是在安装pydelicious过程中遇到DeliciousItemExistsError时,通过替换pydelicious的__init__.py文件解决问题的替换文件
代码片段和文件信息
“““Library to access del.icio.us data via Python.
An introduction to the project is given in the README.
pydelicious is released under the FreeBSD License.
See license.txt for details and the copyright holders.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“ AND
ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES
(INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
“““
import sys
import os
import time
import datetime
import locale
import http.client as httplib
import urllib.request as urllib2
from urllib.parse import urlencode quote_plus
from io import StringIO
from pprint import pformat
try:
# Python >= 2.5
from hashlib import md5
except ImportError:
from md5 import md5
try:
from elementtree.ElementTree import parse as parse_xml
except ImportError:
# Python 2.5 and higher
from xml.etree.ElementTree import parse as parse_xml
try:
import feedparser
except ImportError:
print(“Feedparser not available no RSS parsing.“ file=sys.stderr)
feedparser = None
### Static config
# pydoc and distutils supported exports
__version__ = ‘0.6‘
__author__ = “Berend (.mpe)“
__author_email__ = “devpydelicious@dotmpe.com“
#__date__ = “$Date$“[]
__credits__ = “““Frank Timmermann (original author) and in no
particular order: Greg Pinero me.gooz mohangk stumble.then.rise clupprich“““
__license__ = ‘FreeBSD‘
__rcs_id__ = “$Id: __init__.py 68 2010-11-21 13:58:04Z berend.van.berkum $“[3:-1]
__url__ = ‘http://code.google.com/p/pydelicious/‘
__docformat__ = “restructuredtext en“
__description__ = “Access delicious.com API‘s with Python“
__long_description__ = “A complete Python interface to del.icio.us Bookmarks‘ HTTP API‘s.“
DLCS_OK_MESSAGES = (‘done‘ ‘ok‘)
“Known text values of positive del.icio.us answers“
DLCS_WAIT_TIME = 4
“Time to wait between API requests“
DLCS_REQUEST_TIMEOUT = 444
“Seconds before socket triggers timeout“
DLCS_API_REALM = ‘del.icio.us API‘
DLCS_API_HOST = ‘api.del.icio.us‘
DLCS_API_PATH = ‘v1‘
DLCS_API = “https://%s/%s“ % (DLCS_API_HOST DLCS_API_PATH)
DLCS_RSS = ‘http://feeds.delicious.com/rss/‘
“Old RSS feeds formerly “
DLCS_FEEDS = ‘http://feeds.delicious.com/v2/‘
PREFERRED_ENCODING = locale.getpreferredencoding()
# XXX: might need to check sys.platform/encoding combinations here ie
#if sys.platform == ‘darwin‘ || PREFERRED_ENCODING == ‘macroman:
# PREFERRED_ENCODI
相关资源
- Python-2.7.13-xcompile.patch
- 使用python对淘宝商品信息数据进行爬
- python全套视频教程
- Python_百科爬虫
- BGLL社区划分算法python+networkx包
- python_spider.zip
- Python-定时爬取指定城市天气(一)
- python爬虫Scrapy(一)-我爬了boss数据
- sublime_package_control-python3.zip
- 豆瓣电影信息Python爬虫存入MongoDB.一分
- 遗传算法的Python实现
- 广工校园网心跳脚本 python
- Python爬虫文件:爬取图片的程序.py
- 02.6.利用Python SOCKET多线程开发FTP软件
- 搜狗词库(scel)转化成txt
- 模糊聚类python可执行完整代码
- Arcgis中利用python语言对多个shp文件进
- Arcgis中利用python语言对shp文件批量计
- Arcgis使用Python代码将栅格数据批量转
- python爬取新浪微博源代码
- python进阶篇34集全套视频云盘
- NAO机器人python源码,录音、动作、绕
- 使用Python进行图像处理
- python 实现购物程序
- Python高德交通态势爬取
- 安装步骤。提取码也在里面
- python3.5和python3.6的anaconda,以及pycha
- python登陆
- 基于SMTP的自动发邮件的设计实现Pyt
- Python高级编程和异步IO并发编程
评论
共有 条评论