diff --git a/README.md b/README.md
index a5ea031..6b67d65 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# 新聞解析 / News Analyze
+
+
## Why?
我們使用這個新聞來舉例:
diff --git a/scraping/main.py b/scraping/main.py
index ac3f97e..8cec59f 100644
--- a/scraping/main.py
+++ b/scraping/main.py
@@ -1,7 +1,18 @@
-from urllib.request import urlopen
+import time
+import re # Regular expressions
+from urllib.request import urlopen # URL request lib.
+from bs4 import BeautifulSoup # BeautifulSoup lib.
-url = "https://tw.news.yahoo.com/"
+headers = {
+ 'User-Agent': 'NewsSceraperBot/1.0 (news.yuanhau.com)'
+}
+
+#url = "https://tw.news.yahoo.com/"
+url = "https://news.google.com/home?hl=zh-TW&gl=TW&ceid=TW:zh-Hant"
page = urlopen(url)
+html_bytes = page.read()
+html = html_bytes.decode("utf-8")
+soup = BeautifulSoup(html, "html.parser")
-page
\ No newline at end of file
+print(soup.find_all("article"))
diff --git a/scraping/news.json b/scraping/news.json
new file mode 100644
index 0000000..bf4e9b1
--- /dev/null
+++ b/scraping/news.json
@@ -0,0 +1 @@
+[2個恐怖組織成印巴衝突導火線 虔誠軍、穆罕默德軍是何來頭? 11 小時前
, 印度與巴基斯坦達成全面停火 巴國當局重新開放領空 1 小時前
, 演哪齣?印巴互射一輪飛彈互攻 彼此突喊話「收手讓情勢降溫」 7 小時前
, 驚傳印軍「飆風戰機飛行員」被俘虜 媒體人訝異1事 2 小時前
, 中美關稅談判在即…川普突發文:對中關稅80%合理 台股周一開盤恐遭波及漲勢疲軟 11 小時前
, 結束了?美中瑞士經貿會談 路透:雙方代表團離場 3 小時前
, 美中貿易戰僵局終於破冰 雙方代表在日內瓦展開關稅會談 4 小時前
, 川普提對中關稅降至80% 中國學者:不可接受| 兩岸 4 小時前
, 7 小時前 , 12 小時前 ]
diff --git a/scraping/requirements.txt b/scraping/requirements.txt
index 6530294..3bc2c93 100644
--- a/scraping/requirements.txt
+++ b/scraping/requirements.txt
@@ -1 +1,2 @@
-urlopen
\ No newline at end of file
+urlopen
+beautifulsoup4
\ No newline at end of file