使用OpenAI chatGPT技術, 根據公司公開重大訊息的內容做出解讀,主要是看這訊息對公司股東的影響,進而會不會影響到股價
天地AI股市新聞 : http://www.tendy.net/tendy_ai_news.php
使用OpenAI chatGPT技術, 根據公司公開重大訊息的內容做出解讀,主要是看這訊息對公司股東的影響,進而會不會影響到股價
用python寫一支可以取得5秒加權指數歷史資料的程式
import requests
import pandas as pd
import os
# 這個函數用來判斷要不要跳過某一行
def skip_rows(row):
return row.startswith("說明:") or row.startswith("民國")
def download_taiex_csv(date):
print(date+"下載轉換中")
url = f'https://www.twse.com.tw/exchangeReport/MI_5MINS_INDEX?response=csv&date={date}&type=csv'
response = requests.get(url)
tmpfilename = f'tmp{date}.csv'
with open(tmpfilename, 'w') as f:
f.write(response.text)
try:
df = pd.read_csv(tmpfilename, skiprows=1)
except ValueError:
print(f'No data available for {date}')
else:
df = df[['時間', '發行量加權股價指數']]
df.rename(columns={'發行量加權股價指數': '加權指數'}, inplace=True)
df['時間'] = df['時間'].apply(lambda x: x.replace('=', '').replace('"', ''))
df['時間'] = pd.to_datetime(df['時間'], errors='coerce')
df['時間'] = df['時間'].dt.strftime('%H:%M:%S')
df['加權指數'] = df['加權指數'].str.replace(',', '').astype(float)
df = df.dropna(subset=['時間'])
print(df.head())
# 儲存為CSV檔案
df.to_csv('taiex_%s.csv' % date, index=False)
os.remove(tmpfilename)
# 主程式
start_date = '20230329'
end_date = '20230401'
for date in pd.date_range(start_date, end_date):
download_taiex_csv(date.strftime('%Y%m%d'))
快速幫android studio app的畫面佈局,增加多國語言
可以參考這一篇說明
https://thumbb13555.pixnet.net/blog/post/333199480-supportdifferentlanguages
android上架後,下載的app icon為何變成內建小綠人,解決方法
不知道從哪個版本開始,android studio 把app icon 區分debug/release
據說是有助於開發人員識別
解決方法就是在res , 新建 image asset時
選好圖片的下一步,左上角會有選項顯示debug
這時去把這選項改為main就好了
Soup your photo 's privacy policy
Soup uses cameras and photo albums, which are only for the user's own operation and use, and will not do any collection and sharing, nor upload to the Internet.
Soup has tandem mobile ads using Google's admob
有可能是app沒有用到特別權限,所以xcode 未幫你註冊套件識別碼
這時只需要在xcode project -> target-> signing&Capabilities
隨意先新增一項,等xcode幫你註冊完成,再把這項刪掉就可以了
將chatGPT及Google Vision API應用在天地股票投資機器人(line)
主要是把圖片內的文字轉出來,再請openai,幫我做標題