Last active
December 18, 2019 14:33
-
-
Save PrateekKumarSingh/71a248f5cd22d95da9a8adb6d3e11050 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# web search a keyword to get snippets | |
$Snippets = Search-Web "Jeffery Snover" | | |
ForEach-Object {$_.webpages.value.snippet} | |
# extract keywords from snippets | |
$Words = $snippets.ForEach({ | |
Get-KeyPhrase -Text $_ -ErrorAction SilentlyContinue | |
}).documents.keyphrases.split(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment