Skip to content

Commit

Permalink
Merge pull request #627 from songzy12/master
Browse files Browse the repository at this point in the history
Use the pypi index version of browser_cookie3 in requirements.txt
  • Loading branch information
dataabc authored Jan 2, 2025
2 parents c34fcdc + eb3452d commit 282176b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ lxml==4.9.1
requests==2.32.0
tqdm==4.66.3
absl-py==0.12.0
git+https://github.com/borisbabic/browser_cookie3.git@refs/pull/215/head
browser_cookie3==0.20.1
2 changes: 1 addition & 1 deletion weibo_spider/config_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def check_cookie(user_config_file_path):
"""Checks if user is logged in"""
try:
cookie = get_cookie()
if cookie["MLOGIN"] == '0':
if cookie.get("MLOGIN", '0') == '0':
logger.warning("使用 Chrome 在此登录 %s", "https://passport.weibo.com/sso/signin?entry=wapsso&source=wapssowb&url=https://m.weibo.cn/")
sys.exit()
else:
Expand Down

0 comments on commit 282176b

Please sign in to comment.