You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: