title: scrapy how to make custom delay
body: <p>i want to make a custom delay because global delay is inefficient in my code.</p>
  
  <p>since i didn't know what i was looking for in this thread: <a href="https://stackoverflow.com/questions/46568502/scrapy-is-slow-60-pages-min">scrapy is slow (60 pages/min)</a>
  i decided its better to ask it as a new question.</p>
  
  <p>basically i have:</p>
  
  <pre><code>amazon request
  API request
  API request
  </code></pre>
  
  <p>if i use DOWNLOAD_DELAY = 1
  its like having:</p>
  
  <pre><code>amazon request
  delay(1)
  API request
  delay(1)
  API request
  delay(1)
  </code></pre>
  
  <p>when i actually only need:</p>
  
  <pre><code>amazon request
  API request
  delay(1)
  API request
  delay(1)
  </code></pre>
  
  <p>how can i implement the delay? i dont think scrapy have this function.</p>