Skip to content

Web scrape + auto schedule Cricket and AFL sports performance and match fixture data

Notifications You must be signed in to change notification settings

da2807/WebScrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload data on one drive business (see ipl_matchavailability.R under Cricket)

#if(!require(Microsoft365R)) install.packages("Microsoft365R")
library(AzureAuth)
library(Microsoft365R)

odb <- get_business_onedrive(tenant="edge10ltd")
#upload folder
foldername <- "ipl_squadavailability"
odb$upload_file(src = paste0("C:\\Users\\Aishwar\\Desktop\\Web Scraping\\",filename), dest = paste0("/",foldername,"/",filename))

Schedule Script to run off a local computer (see schedulescript.R under Cricket)

#install.packages("taskscheduleR")
library(taskscheduleR)

taskscheduler_create(
  taskname = "matchavailability103.R",
  rscript = "C:\\Users\\Aishwar\\Desktop\\Web Scraping\\ipl_matchavailability.R",
  schedule = "ONCE",
  starttime = format(Sys.time() + 60, "%H:%M"),
  startdate = format(Sys.Date(), "%d/%m/%Y"),
  Rexe = file.path(Sys.getenv("R_HOME"),"bin","RScript.exe")
)

References

[Microsoft365R: an R interface to the Microsoft 365 suite] (https://blog.revolutionanalytics.com/2021/02/microsoft365r.html)

About

Web scrape + auto schedule Cricket and AFL sports performance and match fixture data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages