How to pass data to scrapinghub?
<p>I'm trying to run a scrapy spider on scrapinghub, and I want to pass in some data. I'm using their API to run the spider:</p>

<p><a href="http://doc.scrapinghub.com/api/jobs.html#jobs-run-json" rel="nofollow">http://doc.scrapinghub.com/api/jobs.html#jobs-run-json</a></p>

<p>They have an option for <code>job_settings</code>, which seems relevant, but I can't figure out how to access the <code>job_settings</code> data in my <code>Spider</code> class. What is the correct approach here?</p>

<p>This <code>job_settings</code> shall be merged directly into the <a href="http://doc.scrapy.org/en/latest/topics/settings.html" rel="nofollow">Scrapy settings</a>, with a higher precedence (of <code>40</code>, IIRC).</p>

<p>The Scrapy settings could be accessed via a <code>.settings</code> attribute of a spider instance, e.g. you could use <code>self.settings</code> if <code>self</code> is a <code>scrapy.Spider</code> instance.</p>

python scrapy scrapinghub