From dfa412c03ed4cd0d2b1df80c02995d50d9fb513e Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Wed, 30 Sep 2020 21:17:46 +0200 Subject: [PATCH] Skip videos for WapsiSquare --- dosagelib/plugins/w.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dosagelib/plugins/w.py b/dosagelib/plugins/w.py index a26a1865c..ba15a83e9 100644 --- a/dosagelib/plugins/w.py +++ b/dosagelib/plugins/w.py @@ -15,6 +15,10 @@ class WapsiSquare(_WPNaviIn): url = 'http://wapsisquare.com/' firstStripUrl = url + 'comic/09092001/' + def shouldSkipUrl(self, url, data): + """Skip pages without images.""" + return data.xpath('//iframe') # videos + class WastedTalent(_BasicScraper): url = 'http://www.wastedtalent.ca/'