title: What is meaning of 'can only concatenate str (not "int") to str?'
body: <p>I want to call 70 threads in my code as you can see to get html content :</p>
  <pre><code>def run_the_command(args):
      conn = pyodbc.connect(
          &quot;Driver={SQL Server};&quot;
          &quot;Server=.;&quot;
          &quot;Database=test;&quot;
          &quot;Trusted_Connection=yes;&quot;
      )
      r = requests.get(&quot;https://coinmarketcap.com/?page=&quot; + args)
      soup = BeautifulSoup(r.text, &quot;lxml&quot;)
  
      table = soup.find(&quot;table&quot;, class_=&quot;cmc-table&quot;)
      for row in table.tbody.find_all(&quot;tr&quot;):
          # Find all data for each column
          columns = row.find_all(&quot;td&quot;)
          link = &quot;https://coinmarketcap.com&quot; + columns[2].a[&quot;href&quot;]
  
          r2 = requests.get(link)
          soup2 = BeautifulSoup(r2.text, &quot;lxml&quot;)
          cursor = conn.cursor()
  
          sql = &quot;insert into coins(price,submitdate,name) values(?,?,?)&quot;
  
          val = [
              (
                  soup2.select_one('[class^=&quot;priceValue&quot;]').text,
                  datetime.today().strftime(&quot;%Y-%m-%d&quot;),
                  link,
              )
          ]
  
          cursor.executemany(sql, val)
  
          conn.commit()
  
  
  try:
  
      if __name__ == &quot;__main__&quot;:
          threads = []
          for i in range(70):
              t = threading.Thread(target=run_the_command, args=(i + 1,))
              t.start()
              threads.append(t)
  
  except requests.exceptions.RequestException as e:
      print(e)
  </code></pre>
  <p>But I get this error :</p>
  <pre><code>    self._target(*self._args, **self._kwargs)
      self._target(*self._args, **self._kwargs)
    File &quot;c:\Users\e.akbar\Desktop\Crypto\gettable.py&quot;, line 14, in run_the_command
    File &quot;c:\Users\e.akbar\Desktop\Crypto\gettable.py&quot;, line 14, in run_the_command
    File &quot;c:\Users\e.akbar\Desktop\Crypto\gettable.py&quot;, line 14, in run_the_command
      r = requests.get('https://coinmarketcap.com/?page='+args)
  TypeError: can only concatenate str (not &quot;int&quot;) to str
      r = requests.get('https://coinmarketcap.com/?page='+args)
  TypeError: can only concatenate str (not &quot;int&quot;) to str
      r = requests.get('https://coinmarketcap.com/?page='+args)
      r = requests.get('https://coinmarketcap.com/?page='+args)
  TypeError: can only concatenate str (not &quot;int&quot;) to str
      r = requests.get('https://coinmarketcap.com/?page='+args)
  TypeError: can only concatenate str (not &quot;int&quot;) to str
  TypeError: can only concatenate str (not &quot;int&quot;) to str
  </code></pre>
  <p>I am new in python</p>