url = "https://technet.microsoft.com/en-us/library/hh135098(v=exchg.150).aspx"
r = requests.get(url)
soup = BeautifulSoup(r.content, 'lxml')
table = soup.find_all('table', attrs={"responsive": "true"})[0]
for rows in table.find_all('tr')[1]:
item = []
for val in rows.find('td'):
item.append(val.text.strip())
print (item)
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
TypeError: 'int' object is not interable
Line 4 refers to for val in rows.find('td'):
rows.find('td')returns ?for val in rows.find('td'):is line 7 in the above code. If you include the full traceback, it actually shows you the offending line.