Last active
January 14, 2016 00:44
-
-
Save yangyer/e3a90c278ca4eb3dc942 to your computer and use it in GitHub Desktop.
Html to XML with PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-ShowTimes($movie) { | |
$url = "https://www.bing.com/search?q=$movie movie showings" | |
$result = Invoke-WebRequest -URI $url | |
$result.AllElements | | |
Where ID -eq "tab_2" | | |
Select -First 1 -ExpandProperty innerText | |
} | |
Get-ShowTimes StarWars | |
Get-ShowTimes "Daddy's Home" | |
Get-ShowTimes "The Revenant" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment