from bs4 import BeautifulSoup
index_response = index_session.get(coenturl, headers=header, verify=False)
index_text = index_response.content.decode(encoding='utf-8')
soup = BeautifulSoup(index_response.content, "html5lib")
# print(soup.find_all(attrs={'class': 'article'}))
for row in soup.find_all(attrs={'class': 'listgif-box'}):
###嵌套标签获取
print(row.find_all('img'))
###标签值的获取
print(row.find_all('img').get('gifsrc'))
###获取文字
print(row.find_all('img').get_text()