CalibreLibgenStore
CalibreLibgenStore copied to clipboard
Language Filtering
I'm looking for a way to filter results by language and/or format. I've tried the following:
def search(self, query): url = self.base_url query_params = { 'q': query, 'criteria': '', 'language': 'English', 'format': 'epub', }
As well as the following in def parse:
if language != "English": return None
I'm wondering if pagination is the issue as usually the first page of search results for libgen.is at least doesn't have English (or French) results. As you can probably tell, I'm not super familiar with python (much more familiar with Java) and am a beginner programmer. I'll keep trying to work it out on my own and will post the solution if I work it out. As far as I can tell, the first option should work.