File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ Finally, here's the spider code::
137
137
138
138
class MininovaSpider(CrawlSpider):
139
139
140
- name = 'mininova.org '
140
+ name = 'mininova'
141
141
allowed_domains = ['mininova.org']
142
142
start_urls = ['http://www.mininova.org/today']
143
143
rules = [Rule(SgmlLinkExtractor(allow=['/tor/\d+']), 'parse_torrent')]
@@ -161,7 +161,7 @@ Run the spider to extract the data
161
161
Finally, we'll run the spider to crawl the site an output file
162
162
``scraped_data.json `` with the scraped data in JSON format::
163
163
164
- scrapy crawl mininova.org -o scraped_data.json -t json
164
+ scrapy crawl mininova -o scraped_data.json -t json
165
165
166
166
This uses :ref: `feed exports <topics-feed-exports >` to generate the JSON file.
167
167
You can easily change the export format (XML or CSV, for example) or the
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ Settings attribute.
56
56
57
57
Example::
58
58
59
- scrapy crawl domain.com -s LOG_FILE=scrapy.log
59
+ scrapy crawl myspider -s LOG_FILE=scrapy.log
60
60
61
61
2. Project settings module
62
62
--------------------------
You can’t perform that action at this time.
0 commit comments