Scrapy, a fast high-level web crawling & scraping framework for Python.
minor doc update for making it more windows-friendly
Pablo Hoffmanb296d4169e39
diff --git a/docs/intro/overview.rst b/docs/intro/overview.rstindex f5ede250e..a7d6a53c1 100644--- a/docs/intro/overview.rst+++ b/docs/intro/overview.rst@@ -152,7 +152,7 @@ extracted item into a file using `pickle`_::class StoreItemPipeline(object):def process_item(self, domain, response, item):torrent_id = item.url.split('/')[-1]- f = open("/tmp/torrent-%s" % torrent_id, "w")+ f = open("torrent-%s.pickle" % torrent_id, "w")pickle.dump(item, f)f.close()diff --git a/docs/topics/settings.rst b/docs/topics/settings.rstindex 142b32dbc..4973c7ccb 100644--- a/docs/topics/settings.rst+++ b/docs/topics/settings.rst@@ -48,17 +48,22 @@ You can also override one (or more) settings from command line using theExample::- scrapy-ctl.py crawl domain.com --set=LOG_FILE:/tmp/scrapy.log+ scrapy-ctl.py crawl domain.com --set LOG_FILE=scrapy.log2. Environment variables------------------------You can populate settings using environment variables prefixed with-``SCRAPY_``. For example, to change the log file location::+``SCRAPY_``. For example, to change the log file location un Unix systems::- $ export SCRAPY_LOG_FILE=/tmp/scrapy.log+ $ export SCRAPY_LOG_FILE=scrapy.log$ scrapy-ctl.py crawl example.com+In Windows systems, you can change the environment variables from the Control+Panel following `these guidelines`_.++.. _these guidelines: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx+3. scrapy_settings------------------