This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests # 引入 requests 模組用於發送 HTTP 請求 | |
import json # 引入 json 模組用於處理 JSON 資料 | |
import sys # 引入 sys 模組用於處理系統相關的參數和功能 | |
import configparser # 引入 configparser 模組用於讀取配置文件 | |
# 檢查是否有提供必要的命令行參數 | |
if len(sys.argv) < 2: | |
print("Usage: python import_notion.py path/to/json") | |
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 匯入所需的模組 | |
from requests.exceptions import HTTPError | |
import requests | |
from bs4 import BeautifulSoup | |
import argparse | |
import json | |
import os | |
def extract_article_details(url): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cask_args appdir: '/Applications' | |
tap 'caskroom/cask' | |
tap "homebrew/cask-fonts" | |
tap 'caskroom/versions' | |
tap "homebrew/bundle" | |
tap "homebrew/core" | |
tap "homebrew/services" | |
tap "hsatac/toybox" | |
brew "coreutils" | |
brew "gnu-sed" |