feat: add search

This commit is contained in:
firedotguy
2026-01-29 21:15:01 +03:00
parent 6e7826f049
commit fcd63dd75e
2 changed files with 19 additions and 4 deletions

4
itd/search.py Normal file
View File

@@ -0,0 +1,4 @@
from itd.request import fetch
def search(token: str, query: str, user_limit: int = 5, hashtag_limit: int = 5):
return fetch(token, 'get', 'search', {'userLimit': user_limit, 'hashtagLimit': hashtag_limit, 'q': query})