Index: contrib/housemixes.py ================================================================== --- contrib/housemixes.py +++ contrib/housemixes.py @@ -86,11 +86,11 @@ html = html + ahttp.get(self.base_url + self.catmap[cat] + "/latest/%s" % i) html = re.sub(".+?", "", html, 100, re.S) self.status("Extracting mixes…") # extract - for card in [pq(e) for e in pq(html)(".card-audio")]: + for card in [pq(e) for e in pq(html).find(".card-audio")]: r = { "title": card(".card-audio-title span").text(), "playing": card(".card-audio-user a").text(), "genre": card(".card-tags a span").text(), # url will be substitute later Index: pq.py ================================================================== --- pq.py +++ pq.py @@ -24,13 +24,12 @@ # disable use pq = None config.conf.pyquery = False # error hint - print("LXML is missing\n", e) - print("\n") - print("Please install the packages python-lxml and python-pyquery from your distributions software manager.\n") + config.log.ERR("LXML is missing\n", e) + config.log.ERR("Please install the packages python-lxml and python-pyquery from your distributions software manager.\n") # let's invoke packagekit? """ try: