title: How to run parallelly the same function in python
body: <p>I am running one code where the python script is basically scraping through a list of links.<br />
  But the process is too slow.I want to divide my code into several process where the code is simultaneously scrapping through multiple links at once.</p>
  <p>List of Links is almost 5000.</p>
  <p>Here is my code which I want to run in parallel</p>
  <pre class="lang-py prettyprint-override"><code>#links contains list of links 
  def fun():
      for link in links:
          requests.get(link,timeout=5)
          ###... scraping code
          #####
  </code></pre>