Skip to content

Commit

Permalink
requirements: remove requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo2011 committed Aug 15, 2024
1 parent e25fc58 commit bf4aa3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bilibili_api/tools/ivitools/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
import os

import tqdm
import requests
import httpx
from colorama import Fore

from bilibili_api import sync, interactive_video


async def download_file(url: str, out: str):
resp = requests.get(
resp = httpx.get(
url,
headers={"User-Agent": "Mozilla/5.0", "Referer": "https://www.bilibili.com"},
stream=True,
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pyyaml~=6.0
brotli~=1.1.0
httpx~=0.26.0
qrcode~=7.4.2
requests~=2.32.2
APScheduler~=3.10.4
rsa~=4.9
pillow~=10.3.0
Expand Down
4 changes: 2 additions & 2 deletions scripts/get_audio_search_tags.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import json

import requests
import httpx

print(
json.dumps(
requests.get("https://api.bilibili.com/x/mv/tag").json(),
httpx.get("https://api.bilibili.com/x/mv/tag").json(),
indent=4,
ensure_ascii=False,
)
Expand Down

0 comments on commit bf4aa3e

Please sign in to comment.