Skip to content

Commit

Permalink
chore(pyppeteer): 更换下载源为镜像源
Browse files Browse the repository at this point in the history
  • Loading branch information
shing-yu committed Nov 13, 2023
1 parent bebf74c commit 4a7b09d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/get_bookinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
# 才会显示目录内容

import asyncio
from pyppeteer import launch
import os
import public as p
from bs4 import BeautifulSoup
import re

# 设置镜像下载地址
os.environ["PYPPETEER_DOWNLOAD_HOST"] = "https://mirrors.huaweicloud.com"
from pyppeteer import launch # noqa: E402


async def get_book_info(url):
# 创建一个Pyppeteer的Browser实例
Expand Down

0 comments on commit 4a7b09d

Please sign in to comment.