def search_novel(self, query):
    query = query.lower().replace(' ', '+')
    soup = self.get_soup((search_url % query))
    results = []
    for a in soup.select('.cover-info p.title a')[:20]:
        url = self.absolute_url(a['href'])
        results.append({'url': url, 'title': a.text.strip()})
    return results
def search_novel(self, query):
    query = query.lower().replace(' ', '+')
    soup = self.get_soup((search_url % query))
    results = []
    for a in soup.select('.cover-info p.title a')[:20]:
        url = self.absolute_url(a['href'])
        results.append({'url': url, 'title': a.text.strip()})
    return results