Skip to content

Commit

Permalink
i dont get this python stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
PlOszukiwaczDEV committed Aug 8, 2024
1 parent 87c72cc commit 39e8ed6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lynt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import json
import utils
import utils.headers


def send_lynt(message: str, repostID: int = None):
Expand Down Expand Up @@ -62,4 +63,4 @@ def get_comments_lynt(lyntID : int):
return r
def search_lynts(search):
r = requests.get(f"https://lyntr.com/api/search?q={search}", cookies=cookies, headers=utils.headers.search_headers)
return r
return r
2 changes: 1 addition & 1 deletion src/utils/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
'Accept': '*/*',
'Accept-Language': 'en-US,en;q=0.5',
# 'Accept-Encoding': 'gzip, deflate, br, zstd',
'Referer': 'https://lyntr.com/api/lynt?id=9037266491583488',
'Referer': 'https://lyntr.com/api/lynt',
'Origin': 'https://lyntr.com',
'DNT': '1',
'Alt-Used': 'lyntr.com',
Expand Down

0 comments on commit 39e8ed6

Please sign in to comment.