IgorShare Thoughts and Ideas

Consulting and Training

SkyDrive PowerShell provider – far beyond reach

Posted by Igor Moochnick on 02/22/2008

After the MS announcement of increasing the SkyDrive size to 5Gb, I realized that it is becoming a great asset for multiple projects I’m working on. I’ve decided to slap together some code that will give a a command-prompt access to this resource. PowerShell PSDrive provider was a perfect platform for this functionality, but … It appears that (first of all) there is no SkyDrive API. After analyzing the html content, I’ve realized that it’s XHTML and can be a perfect candidate for scraping with XLINQ, but (second and last) MS SkyDrive renderer is not generating a valid XHTML! Every attempt to consume it with any XML reader fail with Exception (something similar to: “unexpected token ‘=’, expecting token ‘;'”).

So, bottom line, the SkyDrive is just a nice toy very far from being a useful product.

As far as I know there is no rumors from Microsoft that the SkyDrive API is even considered, but some people have made successful attempts to scrape the data from the SkyDrive (SkyDrive viewer on CodePlex) by using simple HTML parsing.


8 Responses to “SkyDrive PowerShell provider – far beyond reach”

  1. Check out this code I made to upload files to SkyDrive. Is not perfect, the cookie must already exist on the browser for it to work.


    Rogelio Morrell

  2. Rhy Mednick said

    Along the same lines, it would be cool to have a provider for Microsoft SQL Server Data Services when it becomes available. Now it’s in very limited beta so I’m not sure you could get a seat, but it’s possible. link

  3. Yep. I’m still waiting for SkyDrive to open their Web API. As well I’d like to get my hands on Mesh technology too – it gives a lot of flexibility and potential for great projects.

  4. hgHollo said

    Till the time MS provides an official API, you can try SkyDrive .Net API Client on codeplex: http://skydriveapiclient.codeplex.com/.
    It’s parses HTML pages to communicate to SkyDrive, so it’s highly depend on page design … but there is no other way, currently.

  5. Yep, I know about this effort. This is still not an API but a screen scraping. You can’t base any part of your strategy on a screen-scraping technology.

  6. Hi
    I have made a way to get direct link to Skydrive files without visiting skydrive page. I have used no backend encoding on my server, I have made a Yahoo Pipes (See Here) which provides o/p data in form of JSON from Skydrive page, and then accessing this JSON data through Javascript.
    You can see a uswage example here Example

  7. […] https://igorshare.wordpress.com/2008/02/22/skydrive-powershell-provider-far-beyond-reach/ June 8, 2009 6:20 am Anonymous thanks for this – not seen it – shame as this skydrive is now 25gb useful. June 8, 2009 7:33 am […]

  8. […] https://igorshare.wordpress.com/2008/02/22/skydrive-powershell-provider-far-beyond-reach/ […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: