|
|
|
@ -28,7 +28,7 @@ class Fetcher:
|
|
|
|
|
|
|
|
|
|
|
|
def articlesFromCategory(self, category, count=0, timestamp=0, number=0):
|
|
|
|
def articlesFromCategory(self, category, count=0, timestamp=0, number=0):
|
|
|
|
if number == 0:
|
|
|
|
if number == 0:
|
|
|
|
response = httpx.get(self.URL+"/reader/api/0/stream/contents?n="+count+"&s="+category, headers=self.headers)
|
|
|
|
response = httpx.get(self.URL+"/reader/api/0/stream/contents?n=1000"+"&s="+category, headers=self.headers)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
response = httpx.get(self.URL+"/reader/api/0/stream/contents?ot="+timestamp+"&s="
|
|
|
|
response = httpx.get(self.URL+"/reader/api/0/stream/contents?ot="+timestamp+"&s="
|
|
|
|
+ category, headers=self.headers)
|
|
|
|
+ category, headers=self.headers)
|
|
|
|
|