Skip to content

Commit

Permalink
remove add cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
malinkang committed Mar 26, 2024
1 parent ccd6452 commit 451e801
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scripts/weread.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,19 +399,10 @@ def extract_page_id():
else:
raise Exception(f"获取NotionID失败,请检查输入的Url是否正确")



def write_cookie_id(cookie):
env_file = os.getenv('GITHUB_ENV')
# 将值写入环境文件
with open(env_file, "a") as file:
file.write(f"WEREAD_COOKIE={cookie}\n")

if __name__ == "__main__":
parser = argparse.ArgumentParser()
options = parser.parse_args()
weread_cookie = get_cookie()
write_cookie_id(weread_cookie)
database_id = extract_page_id()
notion_token = os.getenv("NOTION_TOKEN")
session = requests.Session()
Expand Down

0 comments on commit 451e801

Please sign in to comment.