Added the basic structure for the first two spiders
This commit is contained in:
parent
3548112838
commit
8dd2c168d2
11
Scrapy/spiders/Chemspider.py
Normal file
11
Scrapy/spiders/Chemspider.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from scrapy.spider import Spider
|
||||||
|
|
||||||
|
class ChemspiderSpider(Spider):
|
||||||
|
name = "Chemspider"
|
||||||
|
allowed_domains = ["chemspider.com"]
|
||||||
|
start_urls = (
|
||||||
|
'http://www.chemspider.com/',
|
||||||
|
)
|
||||||
|
|
||||||
|
def parse(self, response):
|
||||||
|
pass
|
11
Scrapy/spiders/Wikipedia.py
Normal file
11
Scrapy/spiders/Wikipedia.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from scrapy.spider import Spider
|
||||||
|
|
||||||
|
class WikipediaSpider(Spider):
|
||||||
|
name = "Wikipedia"
|
||||||
|
allowed_domains = ["wikipedia.org"]
|
||||||
|
start_urls = (
|
||||||
|
'http://www.wikipedia.org/',
|
||||||
|
)
|
||||||
|
|
||||||
|
def parse(self, response):
|
||||||
|
pass
|
Reference in New Issue
Block a user