OwenStOnge commited on
Commit
519dc9f
·
verified ·
1 Parent(s): 64930ea

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +25 -1
app.R CHANGED
@@ -625,7 +625,29 @@ ui <- fluidPage(
625
  verbatimTextOutput("data_summary")
626
  )
627
  )
628
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
629
  ),
630
 
631
  # Modal for editing pitch type
@@ -647,6 +669,8 @@ ui <- fluidPage(
647
 
648
  # Server
649
  server <- function(input, output, session) {
 
 
650
 
651
  # Reactive values
652
  processed_data <- reactiveVal(NULL)
 
625
  verbatimTextOutput("data_summary")
626
  )
627
  )
628
+ ),
629
+ #Scrape Tab
630
+ tabPanel(
631
+ "Scraping",
632
+ fluidRow(
633
+ column(4,
634
+ h3("Scraper Controls"),
635
+ dateInput("start_date", "Start Date:", value = Sys.Date() - 1),
636
+ dateInput("end_date", "End Date:", value = Sys.Date() - 1),
637
+ radioButtons("data_type", "Data Type:",
638
+ choices = c("Play-by-Play" = "pbp", "Positional" = "pos")),
639
+ actionButton("scrape_btn", "Scrape Data", class = "btn-primary"),
640
+ br(), br(),
641
+ downloadButton("download_scrape", "Download CSV"),
642
+ br(), br(),
643
+ verbatimTextOutput("scrape_status")
644
+ ),
645
+ column(8,
646
+ h3("Data Preview"),
647
+ DT::dataTableOutput("scrape_preview")
648
+ )
649
+ )
650
+ )
651
  ),
652
 
653
  # Modal for editing pitch type
 
669
 
670
  # Server
671
  server <- function(input, output, session) {
672
+
673
+
674
 
675
  # Reactive values
676
  processed_data <- reactiveVal(NULL)