mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Lowered rate for iqdb requests to reduce possibility of ip ban
This commit is contained in:
parent
21fc7d40fb
commit
18bae80a1d
1 changed files with 3 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import asyncio
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
|
@ -8,6 +9,8 @@ from utils import utils as u
|
|||
|
||||
|
||||
async def get_post(url):
|
||||
await asyncio.sleep(u.RATE_LIMIT)
|
||||
|
||||
content = await u.fetch('http://iqdb.harry.lu', params={'url': url})
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue