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 31 32 33 34 35
|
"""
Scrapy - a screen scraping framework written in Python
"""
version_info = (0, 14, 4)
__version__ = "0.14.4"
import sys, os, warnings
if sys.version_info < (2,5):
print "Scrapy %s requires Python 2.5 or above" % __version__
sys.exit(1)
# ignore noisy twisted deprecation warnings
warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted')
# monkey patches to fix external library issues
from scrapy.xlib import twisted_250_monkeypatches, urlparse_monkeypatches
# optional_features is a set containing Scrapy optional features
optional_features = set()
try:
import OpenSSL
except ImportError:
pass
else:
optional_features.add('ssl')
try:
import boto
except ImportError:
pass
else:
optional_features.add('boto')
|