For the problem “attributeerror: ‘nonetype’ object has no attribute ‘text’.” I tried to fix it, but It doesn’t work and returns the result I want. Here is my program: url = 'http://legis.senado.leg.br/dadosabertos/senador/4988/autorias' import requests from xml.etree import ...