jonathanjordan21 commited on
Commit
3c6a3cc
·
verified ·
1 Parent(s): c82fca9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ async def read_item(username: str, video_id:str):
60
  url = f"https://tiktok.com/@{username}/video/{video_id}"
61
 
62
  async with httpx.AsyncClient() as client:
63
- res = await client.get(url, headers=headers)
64
 
65
  # res = requests.get(url, headers={"user-agent":user_agent})
66
  text_maker = html2text.HTML2Text()
 
60
  url = f"https://tiktok.com/@{username}/video/{video_id}"
61
 
62
  async with httpx.AsyncClient() as client:
63
+ res = await client.get(url, headers={"User-Agent":user_agent})
64
 
65
  # res = requests.get(url, headers={"user-agent":user_agent})
66
  text_maker = html2text.HTML2Text()