Skip to content

Commit

Permalink
[flickr] update default API credentials (#4332)
Browse files Browse the repository at this point in the history
and add a delay between API requests
  • Loading branch information
mikf committed Jul 22, 2023
1 parent a45a17d commit 7da954f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gallery_dl/extractor/flickr.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class FlickrExtractor(Extractor):
directory_fmt = ("{category}", "{user[username]}")
archive_fmt = "{id}"
cookies_domain = None
request_interval = (1.0, 2.0)
request_interval_min = 0.2

def __init__(self, match):
Extractor.__init__(self, match)
Expand Down Expand Up @@ -289,8 +291,8 @@ class FlickrAPI(oauth.OAuth1API):
"""

API_URL = "https://api.flickr.com/services/rest/"
API_KEY = "ac4fd7aa98585b9eee1ba761c209de68"
API_SECRET = "3adb0f568dc68393"
API_KEY = "f8f78d1a40debf471f0b22fa2d00525f"
API_SECRET = "4f9dae1113e45556"
FORMATS = [
("o" , "Original" , None),
("6k", "X-Large 6K" , 6144),
Expand Down

0 comments on commit 7da954f

Please sign in to comment.