[sitemap] resolve several ScrapyDeprecationWarning exceptions
Change-Id: Ie87e6c316eecd45006332088912b31809b4c9679
This commit is contained in:
parent
470017fe8b
commit
8a2df7b6ef
|
@ -16,7 +16,7 @@
|
||||||
# All available configuration variables are documente at
|
# All available configuration variables are documente at
|
||||||
# http://doc.scrapy.org/en/latest/topics/settings.html.
|
# http://doc.scrapy.org/en/latest/topics/settings.html.
|
||||||
|
|
||||||
from scrapy import linkextractor
|
from scrapy import linkextractors
|
||||||
|
|
||||||
BOT_NAME = 'sitemap'
|
BOT_NAME = 'sitemap'
|
||||||
SPIDER_MODULES = ['generator.spiders']
|
SPIDER_MODULES = ['generator.spiders']
|
||||||
|
@ -31,4 +31,4 @@ LOG_LEVEL = 'INFO'
|
||||||
LOGGING_ENABLED = True
|
LOGGING_ENABLED = True
|
||||||
RANDOMIZE_DOWNLOAD_DELAY = False
|
RANDOMIZE_DOWNLOAD_DELAY = False
|
||||||
TELNETCONSOLE_ENABLED = False
|
TELNETCONSOLE_ENABLED = False
|
||||||
linkextractor.IGNORED_EXTENSIONS.remove('pdf')
|
linkextractors.IGNORED_EXTENSIONS.remove('pdf')
|
||||||
|
|
|
@ -15,8 +15,8 @@ import time
|
||||||
import urlparse
|
import urlparse
|
||||||
|
|
||||||
from generator import items
|
from generator import items
|
||||||
from scrapy.contrib.linkextractors import sgml
|
from scrapy.linkextractors import sgml
|
||||||
from scrapy.contrib import spiders
|
from scrapy import spiders
|
||||||
|
|
||||||
|
|
||||||
class SitemapSpider(spiders.CrawlSpider):
|
class SitemapSpider(spiders.CrawlSpider):
|
||||||
|
|
Loading…
Reference in New Issue