Remove some adds
This commit is contained in:
parent
5b6e475428
commit
4750e8f421
1 changed files with 3 additions and 1 deletions
|
|
@ -18,7 +18,8 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from weboob.tools.capabilities.messages.genericArticle import GenericNewsPage
|
||||
from weboob.tools.capabilities.messages.genericArticle import GenericNewsPage,\
|
||||
try_drop_tree
|
||||
|
||||
|
||||
class ArticlePage(GenericNewsPage):
|
||||
|
|
@ -31,6 +32,7 @@ class ArticlePage(GenericNewsPage):
|
|||
|
||||
def get_body(self):
|
||||
div = self.document.getroot().find('.//div[@class="sectbody"]')
|
||||
try_drop_tree(self.parser, div, "div.anchor")
|
||||
for a in div.findall('.//a'):
|
||||
try:
|
||||
if a.attrib["href"][0:7] != "http://":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue