How can i make a script to report/show when changes are made to a webpage

How would i make a script in powershell to see who unfriends me in facebook. would i use a webcrawler. i was given a bonus assignment for school. and i thought a web crawler would be the way to go. i do under stand html/css and some javascript but im new to powershell and not sure where to start. or maybe a webcrawler to report/show changes and have the report shown in a csv or something not sure any help is handy thanks

Though you can try to do this with PowerShell, it wasn’t created for this task.

Was PowerShell part of the assignment ?

PHP or C# with the facebook API might be a better tool for the job

https://www.script-tutorials.com/facebook-api-get-friends-list/

yes it need to be done in powershell i found this code

The URI list to test

$URLListFile = “C:\url.txt”
$URLList = Get-Content $URLListFile -ErrorAction SilentlyContinue
$Result = @()

Foreach($Uri in $URLList) {
$time = try{
$request = $null

Request the URI, and measure how long the response took.

$result1 = Measure-Command { $request = Invoke-WebRequest -Uri $uri }
$result1.TotalMilliseconds
}
catch
{

$request = $_.Exception.Response
$time = -1
}
$result += [PSCustomObject] @{
Time = Get-Date;
Uri = $uri;
StatusCode = [int] $request.StatusCode;
StatusDescription = $request.StatusDescription;
ResponseLength = $request.RawContentLength;
TimeTaken = $time;
}

}
#Prepare email body in HTML format
if($result -ne $null)
{
$Outputreport = “Website Availability Report Website Availability Report URLStatusCodeStatusDescriptionResponseLengthTimeTaken</TD”
Foreach($Entry in $Result)
{
if($Entry.StatusCode -ne “200”)
{
$Outputreport += “”
}
else
{
$Outputreport += “”
}
$Outputreport += “$($Entry.uri)$($Entry.StatusCode)$($Entry.StatusDescription)$($Entry.ResponseLength)$($Entry.timetaken)”
}
$Outputreport += “”
}

$Outputreport | out-file C:\report\Test.htm
Invoke-Expression C:\report\Test.htm

but i need to find a way for it to go to my friends list url and then check to see if it can find my friends profile url. instead of checking to see if it can find a url on the net

https://technet.microsoft.com/en-us/library/hh849901.aspx