Use clean_relativ_urls for presseurop articles
This commit is contained in:
parent
a6e80a2206
commit
5e2af20be1
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
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# 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):
|
class PresseuropPage(GenericNewsPage):
|
||||||
|
|
@ -34,6 +35,7 @@ class PresseuropPage(GenericNewsPage):
|
||||||
element_body = self.get_element_body()
|
element_body = self.get_element_body()
|
||||||
try_drop_tree(self.parser, element_body, "li.button-social")
|
try_drop_tree(self.parser, element_body, "li.button-social")
|
||||||
try_drop_tree(self.parser, element_body, "div.sharecount")
|
try_drop_tree(self.parser, element_body, "div.sharecount")
|
||||||
|
clean_relativ_urls(element_body, "http://presseurop.eu")
|
||||||
|
|
||||||
return self.parser.tostring(element_body)
|
return self.parser.tostring(element_body)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue