0

I want to authenticate to a an external web page from my windows phone application. I will then want to do further scraping of pages on the site but need to get past the authentication issue.

The page on the external website has a function call validateLogin which takes login name and password.

I want to call this function from my Windows Phone code passing in the required arguments. This would facilitate logging into the site and hopefully I can continue to scrape the pages.

1

1 Answer 1

1

Use the WebBrowser control and call the InvokeScript method. Ensure that you set IsScriptEnabled on the WebBrowser control and that you specify the ID_CAP_WEBBROWSERCOMPONENT capability in WMAppManifest.xml.

As a side note: Scraping web pages is rarely a robust and reliable approach of creating an application that uses a website :)

Sign up to request clarification or add additional context in comments.

2 Comments

Yeah I know scraping is fragile - but no option - it doesn't change much so hopefully its manageable.
There is no api, web service or rss type interface. Can you suggest any other alternatives?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.