Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.
Jason Jarrett edited this page Sep 13, 2013 · 5 revisions

Welcome to the NugetAutomation wiki!

Count package downloads from Nuget.org?

Open LinqPad connect to nuget odata http://packages.nuget.org/v1/FeedService.svc and run the following script.

List<V1FeedPackage> items = new List<V1FeedPackage>();

for(int i = 0; i < 500; i+=40) {

	var packages = (from p in Packages
					where p.Id.EndsWith(".TypeScript.DefinitelyTyped")
			   		select p).Skip(i).Take(40).ToList();
	items.AddRange(packages);
	i.Dump();
}

"***************".Dump();
items.Sum(s=>s.VersionDownloadCount).Dump();
Clone this wiki locally