mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 20:55:10 +01:00
RapidAPI all the things
This commit is contained in:
@@ -364,7 +364,7 @@ class Bookmark(BaseModel):
|
|||||||
if response.status_code == 404:
|
if response.status_code == 404:
|
||||||
# Fall back to desktop favicon
|
# Fall back to desktop favicon
|
||||||
response = requests.get(
|
response = requests.get(
|
||||||
'https://realfavicongenerator.p.mashape.com/favicon/icon?platform=desktop&site=' + domain,
|
'https://realfavicongenerator.p.rapidapi.com/favicon/icon?platform=desktop&site=' + domain,
|
||||||
stream=True,
|
stream=True,
|
||||||
headers={'User-Agent': DIGIMARKS_USER_AGENT, 'X-Mashape-Key': settings.MASHAPE_API_KEY}
|
headers={'User-Agent': DIGIMARKS_USER_AGENT, 'X-Mashape-Key': settings.MASHAPE_API_KEY}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user