title: Getting data from url and putting it into DataFrame
body: <p>Hi everyone I am currently trying to get some data from urls and then trying to predict what category should that article belong.
  So far I have done this but it has an error:</p>
  
  <pre><code>    info = pd.read_csv('labeled_urls.tsv',sep='\t',header=None)
      html, category = [], []
      for i in info.index:
          response = requests.get(info.iloc[i,0])
          soup = BeautifulSoup(response.text, 'html.parser')
          html.append([re.sub(r'&lt;.*?&gt;','', 
                        str(soup.findAll(['p','h1','\href="/avtorji/'])))])
          category.append(info.iloc[0,i])
  
      data = pd.DataFrame()
      data['html'] = html
      data['category'] = category
  </code></pre>
  
  <p>And the error is this: </p>
  
  <blockquote>
    <p>IndexError: single positional indexer is out-of-bounds.</p>
  </blockquote>
  
  <p>Can someone help me please?</p>