| get_speech_video | R Documentation |
Retrieves video records and information of legislative meetings and committee sessions, including speech segments, meeting details, and video URLs. Data is available in both JSON and CSV formats from the 9th legislative term onwards.
get_speech_video(
term = NULL,
session_period = NULL,
start_date = NULL,
end_date = NULL,
verbose = TRUE,
format = "json"
)
term |
numeric or NULL. Legislative term number (e.g., 10). Data is available from the 9th term onwards. Default is NULL. |
session_period |
numeric or NULL. Session period number (1-8). Default is NULL. |
start_date |
character. Must be formatted in ROC calendar with forward slashes between year, month and day, e.g., "110/10/01". |
end_date |
character. Must be formatted in ROC calendar with forward slashes between year, month and day, e.g., "110/10/30". |
verbose |
logical. Whether to display download progress and detailed information. Default is TRUE. |
format |
character. Data format to retrieve, either "json" or "csv". Default is "json". |
The function retrieves video information from legislative meetings and committee sessions. Data is available from the 9th legislative term onwards (2016/民國105年). The date parameters must use the ROC calendar format with forward slashes. Data can be retrieved in either JSON or CSV format.
A list containing:
titlespeech video records
query_timequery timestamp
retrieved_numbernumber of videos retrieved
termqueried legislative term
session_periodqueried session period
start_datestart date in ROC calendar
end_dateend date in ROC calendar
formatdata format ("json" or "csv")
urlretrieved API URL
variable_namesvariables in the tibble dataframe
manual_infoofficial manual URL
dataa tibble dataframe containing:
term屆別
sessionPeriod會期
meetingDate會議日期(西元年)
meetingTime會議時間
meetingTypeName主辦單位
meetingName會議名稱
meetingContent會議事由
legislatorName委員姓名
areaName選區名稱
speechStartTime委員發言時間起
speechEndTime委員發言時間迄
speechRecordUrl發言紀錄網址
videoLength影片長度
videoUrl影片網址
selectTerm屆別期別篩選條件
For more details about the data variables and API information,
use get_variable_info("get_speech_video") or visit:
https://data.ly.gov.tw/getds.action?id=148
會議類:提供立法院院會及委員會之委員發言片段相關影片資訊 (自第9屆第1會期起)。
get_variable_info("get_speech_video")
## Not run:
# Query video information in JSON format
videos <- get_speech_video(
term = 10,
session_period = 4,
start_date = "110/10/01",
end_date = "110/10/30"
)
# Query in CSV format
videos_csv <- get_speech_video(
term = 10,
session_period = 4,
start_date = "110/10/01",
end_date = "110/10/30",
format = "csv"
)
# Query without specifying term/session
videos <- get_speech_video(
start_date = "110/10/01",
end_date = "110/10/30"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.