Hello,In the docs is the following example:import osos.environ.setdefault('SCRAPY_SETTINGS_MODULE', 'myprojectdir.settings')from twisted.internet import reactorfrom scrapy.crawler import Crawlerfrom scrapy.settings import Settingsfrom scrapy import logfrom testspiders.spiders.followall import FollowAllSpiderspider = FollowAllSpider(domain='scrapinghub.com')crawler = Crawler(Settings())crawler.configure()crawler.crawl(spider)crawler.start()log.start()reactor.run() # the script will block hereI defined a custom USER_AGENT in the settings, and when I do this in the script:print Settings().get('USER_AGENT')it gives me the default Scrapy user agent, not the one I defined in the myprojectdir.settings file.The current directory is also in my PYTHONPATH so myprojectdir.settings can be imported when running a python interactive shell.What am I doing wrong here?Thanks for this awesome software,Scrapy_user.--
You received this message because you are subscribed to the Google Groups "scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scrapy-users...@googlegroups.com.
To post to this group, send email to scrapy...@googlegroups.com.
Visit this group at http://groups.google.com/group/scrapy-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.