mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
refactor: update PostgreSQL import and initialization
- Changed the import statement from "bun" to "postgres". - Simplified the PostgreSQL client initialization by directly using the connection string.
This commit is contained in:
parent
089c90f79b
commit
666f6ac38b
7 changed files with 998 additions and 211 deletions
|
@ -10,7 +10,8 @@ headers = {
|
|||
}
|
||||
|
||||
#url = "https://tw.news.yahoo.com/"
|
||||
url = "https://news.google.com/home?hl=zh-TW&gl=TW&ceid=TW:zh-Hant"
|
||||
#url = "https://news.google.com/home?hl=zh-TW&gl=TW&ceid=TW:zh-Hant"
|
||||
url = "https://news.google.com/topics/CAAqJQgKIh9DQkFTRVFvSUwyMHZNRFptTXpJU0JYcG9MVlJYS0FBUAE?hl=zh-TW&gl=TW&ceid=TW%3Azh-Hant"
|
||||
|
||||
page = urlopen(url)
|
||||
html_bytes = page.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue