mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 06:37:29 +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
|
import re
|
||||||
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
@ -8,6 +9,8 @@ from utils import utils as u
|
||||||
|
|
||||||
|
|
||||||
async def get_post(url):
|
async def get_post(url):
|
||||||
|
await asyncio.sleep(u.RATE_LIMIT)
|
||||||
|
|
||||||
content = await u.fetch('http://iqdb.harry.lu', params={'url': url})
|
content = await u.fetch('http://iqdb.harry.lu', params={'url': url})
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue