Use clean_relativ_urls for presseurop articles

This commit is contained in:
Florent 2012-11-07 18:18:33 +01:00
commit 5e2af20be1

View file

@ -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, try_drop_tree
from weboob.tools.capabilities.messages.genericArticle import GenericNewsPage, try_drop_tree, \
clean_relativ_urls
class PresseuropPage(GenericNewsPage):
@ -34,6 +35,7 @@ class PresseuropPage(GenericNewsPage):
element_body = self.get_element_body()
try_drop_tree(self.parser, element_body, "li.button-social")
try_drop_tree(self.parser, element_body, "div.sharecount")
clean_relativ_urls(element_body, "http://presseurop.eu")
return self.parser.tostring(element_body)