Lawyers.com - Consumer Legal Articles

Category:
TypeProviders.AzureMarketPlace
Description: Consume Azure Marketplace data from Lawyers.com Consumer Legal Articles. For more information, please goto https://datamarket.azure.com/dataset/4306e828-ad35-4049-b9a9-4e4824cc37e8
Code:
type Lawyers = Microsoft.FSharp.Data.TypeProviders.ODataService< ServiceUri = @"https://api.datamarket.azure.com/LexisNexis/ConsumerLegalArticles/" >

let LawyersDotCom() =
let articles = Lawyers.GetDataContext()
//To sign up for a Windows Azure Marketplace account, please go to https://datamarket.azure.com/account/info
articles.Credentials<- NetworkCredential (Utils.ADM_USER_ID, Utils.ADM_ACCOUNT_ID)

query {
for a in articles.Articles do
where (a.State = "Washington")
select a
} |> Seq.iter(fun i -> printfn "%A" i.Title)

// sample output
// "WA Witnesses at a Small Claims Trial"
// "WA Alternatives to Small Claims Court"
// "WA After Small Claims Court"
// "Estate Planning in Washington State (WA)"
// "Washington Expungement and Record Sealing"
// "Selling a House in Washington"
// "Washington Statutes of Limitations"
// "Criminal Process in Washington State (WA)"
// ...


Execution Result:
"WA Witnesses at a Small Claims Trial"
"WA Alternatives to Small Claims Court"
"WA After Small Claims Court"
"Estate Planning in Washington State (WA)"
"Washington Expungement and Record Sealing"
"Selling a House in Washington"
"Washington Statutes of Limitations"
"Criminal Process in Washington State (WA)"
"Personal Injury in the State of Washington (WA)"
"WA Collecting the Judgment"
"Divorce in Washington State (WA)"
"Washington Traffic Violations"
"Buying a House in Washington (WA)"
"WA Small Claims Trials"
"WA What Is Small Claims Court?"
"WA Filing a Small Claims Suit"
"Washington Small Claims"
"Employment Law in Washington State"
"Bankruptcy in Washington State"

Last edited Mar 1, 2012 at 7:05 PM by ttliu2000, version 5

Comments

No comments yet.