Since there is no official public Netflix API anymore, I\'m trying to reverse engineer some things on my own. But I\'m kind of stuck at the login.
What I\'m doing:
What you're looking for is called Web Scraping / Web Crawling.
You can do it with the WebBrowser component from .NET as gregswiss pointed out, but you can also do it with :
Python : Scrapy (The most popular web scraper, Also you'll find lot of tutorials)
Javascript : Casper JS (wich relies on Phantom JS a headless web browser)
Java : Jaunt (it is my favorite, comes with relevant examples), or write your own web scraper using org.apache.commons.httpclient.
PHP : http://www.programminghelp.com/php/basic-web-scraping-regex-php/ http://www.jacobward.co.uk/web-scraping-with-php-curl-part-1/
Here is an example for logging in with jaunt :
try{
UserAgent userAgent = new UserAgent();
userAgent.visit("http://jaunt-api.com/examples/login.htm");
userAgent.doc.fillout("Username:", "tom"); //fill out the component labelled 'Username:' with "tom"
userAgent.doc.fillout("Password:", "secret"); //fill out the component labelled 'Password:' with "secret"
userAgent.doc.choose(Label.RIGHT, "Remember me");//choose the component right-labelled 'Remember me'.
userAgent.doc.submit(); //submit the form
System.out.println(userAgent.getLocation()); //print the current location (url)
}
catch(JauntException e){
System.err.println(e);
}
You can find more example here : http://jaunt-api.com/jaunt-tutorial.htm
There exist a number of approaches that you can use to get Netflix working. You can make you own API which is not that hard. If you intend to have it for your own purposes that will be overkill, but if you intend to have at least some users it is feasible. The main thing you need to remember is that usually a first call is required (to save/get cookie). After that you can login and later display the content to the user or create you own design from the fetched data. Your relevant options:
I use a combination of the first and second option in a project of mine. However, my project is not related to anything close to yours except for that it use cookies, login and API. Good luck!