Archived
1
0

Delayed refractor from developing branch

This commit is contained in:
Jip J. Dekker 2014-04-23 22:55:28 +02:00
parent 964e0b8ade
commit c5bffffeda

View File

@ -1,12 +1,12 @@
from scrapy.http import Request from scrapy.http import Request
from scrapy import log from scrapy import log
from parser import Parser from source import Source
from scrapy.selector import Selector from scrapy.selector import Selector
from FourmiCrawler.items import Result from FourmiCrawler.items import Result
import re import re
class WikipediaParser(Parser): class WikipediaParser(Source):
""" Wikipedia scraper for chemical properties """ Wikipedia scraper for chemical properties
@ -19,7 +19,7 @@ class WikipediaParser(Parser):
searched_compounds = [] searched_compounds = []
def __init__(self): def __init__(self):
pass Source.__init__(self)
def parse(self, response): def parse(self, response):
""" Distributes the above described behaviour """ """ Distributes the above described behaviour """