Skip to content

Commit

Permalink
提供编译的exe程序
Browse files Browse the repository at this point in the history
  • Loading branch information
huaisha1224 committed Dec 27, 2023
1 parent eedc34e commit b57dea5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Get-JDCookie.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = "Huaisha2049"
import asyncio
from random import random
from socket import timeout
Expand Down Expand Up @@ -27,7 +28,6 @@ def find_cookie(cookies):
async def main():
"""使用pyppeteer库来登录京东、并获取cookie
"""
print('请在弹出的网页中登录账号、推荐使用账户短信验证码的形式登录。')
browser = await launch(headless=False, dumpio=True, autoClose=False,
args=['--no-sandbox', '--window-size=1000,800', '--disable-infobars']) # 进入有头模式
context = await browser.createIncognitoBrowserContext() # 隐身模式
Expand All @@ -50,4 +50,25 @@ async def main():


if __name__== "__main__":
aaa = """
   へ     /|
  /\7    ∠_/
  / │   / /
 │ Z _,< /   /`ヽ
 │     ヽ   /  〉
  Y     `  /  /
 ●  ●  〈  /
 ()  へ    | \〈
  > _  ィ  │ //
  / へ   / <| \\
  ヽ_  (_/  │//
  7       |/
  >―r ̄ ̄`―_
使用说明:在弹出的网页中登录账号、推荐使用账户短信验证码的形式登录
问题反馈:https://github.com/huaisha1224
作者:怀沙2049
"""
print(aaa)
asyncio.get_event_loop().run_until_complete(main()) #调用
Binary file modified exe/Get-JDCookie.exe
Binary file not shown.

0 comments on commit b57dea5

Please sign in to comment.