Compare commits
2 commits
e0a423f296
...
bcd06ffecc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bcd06ffecc | ||
|
|
fbda3f1f1d |
2 changed files with 3 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ class ABSConnector:
|
|||
page = 0
|
||||
|
||||
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"]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from ratelimit import limits
|
||||
from ratelimit import limits, sleep_and_retry
|
||||
import requests
|
||||
import json
|
||||
import os
|
||||
|
|
@ -6,6 +6,7 @@ import os
|
|||
|
||||
class AudNexusConnector:
|
||||
|
||||
@sleep_and_retry
|
||||
@limits(calls=100, period=60)
|
||||
def request(self, url):
|
||||
return requests.get(url, {"update": 0, "seedAuthors": 0})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue