mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 01:57:46 +00:00
change decode
This commit is contained in:
parent
25a78c8762
commit
3adccc1b6c
2
pl.py
2
pl.py
@ -34,7 +34,7 @@ async def pl(context):
|
||||
for _ in range(3): # 最多重试3次
|
||||
try:
|
||||
plhtml = get(f"http://www.gd2063.com/pl/?{s}")
|
||||
htmlStr = plhtml.content.decode("gb2312")
|
||||
htmlStr = plhtml.content.decode("gbk")
|
||||
soup = BeautifulSoup(htmlStr, 'html.parser')
|
||||
arr = soup.find_all(name='a', attrs={"class": "heise"}, limit=10)
|
||||
result = ""
|
||||
|
Loading…
Reference in New Issue
Block a user