get_ly_ivod | R Documentation |
從立法院開放資料平台擷取議事轉播系統(IVOD)的影片紀錄資料。 Retrieves IVOD (Internet Video on Demand) records from the Legislative Yuan API. Returns video records sorted by date in descending order.
get_ly_ivod(
page = 1,
limit = 20,
term = NULL,
session_period = NULL,
show_progress = TRUE
)
page |
integer. Page number for pagination (default: 1) |
limit |
integer. Number of records per page (default: 20) |
term |
integer. Legislative term (e.g. 9) |
session_period |
integer. Session period |
show_progress |
logical. Whether to display progress bar (default: TRUE) |
Get Legislative Yuan IVOD Records
A list containing two components:
A list containing pagination and filter information:
Total number of records found
Total number of available pages
Current page number
Number of records per page
List of filters applied to the query
A data frame containing:
IVOD record ID
URL to view video on IVOD website
Direct streaming URL for the video
Original meeting date and time
Name of the legislative meeting
Type of video record
Meeting date in YYYY-MM-DD format
Video start timestamp
Video end timestamp
Video duration in seconds
Formatted video length (HH:MM:SS)
## Not run:
# Get videos from term 9
videos <- get_ly_ivod(
term = 9,
limit = 5
)
# Get videos from specific session
session_videos <- get_ly_ivod(
term = 9,
session_period = 1,
page = 1,
limit = 20
)
# Access the results
print(paste("Total videos:", videos$metadata$total))
print("First video details:")
print(videos$ivods[1, c("meeting_name", "date", "video_length")])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.