Compare commits
No commits in common. "bcd06ffecc727ed9c71a713db87d83743092754d" and "e0a423f2967453ee5b4cb07d48d6f83b273b908d" have entirely different histories.
bcd06ffecc
...
e0a423f296
2 changed files with 2 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ class ABSConnector:
|
||||||
page = 0
|
page = 0
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
data = self._get_library_page(library_id, page, page_size)
|
data = self.__get_library_page(library_id, page, page_size)
|
||||||
|
|
||||||
yield from data["results"]
|
yield from data["results"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from ratelimit import limits, sleep_and_retry
|
from ratelimit import limits
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
@ -6,7 +6,6 @@ import os
|
||||||
|
|
||||||
class AudNexusConnector:
|
class AudNexusConnector:
|
||||||
|
|
||||||
@sleep_and_retry
|
|
||||||
@limits(calls=100, period=60)
|
@limits(calls=100, period=60)
|
||||||
def request(self, url):
|
def request(self, url):
|
||||||
return requests.get(url, {"update": 0, "seedAuthors": 0})
|
return requests.get(url, {"update": 0, "seedAuthors": 0})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue