I am trying to scrape data from <https://www.teamrankings.com/> and am having some difficulty. I have set up a few similar programs in the past when creating csvs from webscraping, but this one is giving me some trouble. I keep getting a `TypeError` in one specific for loop, but a different program I have with essentially the same code works just fine. I'm sure there is a simple fix for this but I have been unable to find one.

I have tried the suggested fixes given by Pycharm, but none of them fix anything. And by changing the variable to type `object`, it then says objects of type `None` cannot be iterated either.

```
for tr in rows:
    cells = tr.find("td")
    temp = []
    for td in cells:
        x = 0
        if(x == 2):
            temp.append(td.get_text())
        x+=1
    data.append(temp)

```

I only posted the code that was giving the error message, but can post more if that would be helpful. All of the error messages were some sort of `TypeError`, typically `TypeError: 'int' object is not iterable`. I tried doing with `range(cells)` and `range(len(cells))` but both of those fixes failed.

Meanwhile, from the working program (scraping from a different website), the following code worked:

```
for tr in rows:
    cells = div.find("right")
    temp = []
    for right in cells:
        temp.append(data.get_text())
    data.append(temp)

```

To me this looks the same, which is why I am confused. The goal, as stated, is to make a csv, but so far no luck.