Skip to content

Thin C# API client for scrolller.com. Can be used to download subreddit assets

License

Notifications You must be signed in to change notification settings

PereViader/Scrolller.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run tests

Scrolller.Net

Use this library to get any sfw/nsfw images/videos from https://www.scrolller.com Use responsibly. If you don't use all the assets provided on a single call, prefer to cache the results and reuse them instead of calling scrolller again.

Bindings for microsoft's dependency injection library provided.

Assets returned will be links to photos/videos/gifs

var serviceProvider = new ServiceCollection()
    .AddScrolller()
    .BuildServiceProvider();

IScrolllerService scrolllerService = serviceProvider.GetRequiredService<IScrolllerService>();


//Use scrolllers discover functionality to get either sfw or nsfw assets
List<Uri> discoverUris = await scrolllerService.Discover(isNsfw: false);


//Use scrolllers subreddit functionality to get assets from the desired subreddit
List<Uri> subredditUris = await scrolllerService.Subreddit("pics"); 


//AsyncEnumerable methods also provided to allow the retrieval of multiple scrolller pages using an iterator to paginate the results internally
var subredditStream = _streamingScrolller.DiscoverStream(isNsfw: false)
    .Take(3); //Take 3 scrolller pages

await foreach (var subreddits in subredditStream)
{
    foreach(var item in subreddits.Items)
    {
        Console.WriteLine(item);
    }
}

About

Thin C# API client for scrolller.com. Can be used to download subreddit assets

Topics

Resources

License

Stars

Watchers

Forks

Languages