Show / Hide Table of Contents

Class ScraperService

Implementation of IScraperService which is built on top of platform scrapers IPlatformScraper, post filters PostFilter and post processors IPostProcessor

Inheritance
System.Object
ScraperService
Implements
IScraperService
Namespace: Scraper.Net
Assembly: Scraper.Net.dll
Syntax
public class ScraperService : object, IScraperService

Constructors

| Improve this Doc View Source

ScraperService(IDictionary<String, IPlatformScraper>, IEnumerable<PostFilter>, IEnumerable<IPostProcessor>, ILogger<ScraperService>)

Declaration
public ScraperService(IDictionary<string, IPlatformScraper> platformScrapers, IEnumerable<PostFilter> postFilters, IEnumerable<IPostProcessor> postProcessors, ILogger<ScraperService> logger)
Parameters
Type Name Description
IDictionary<System.String, IPlatformScraper> platformScrapers
IEnumerable<PostFilter> postFilters
IEnumerable<IPostProcessor> postProcessors
ILogger<ScraperService> logger

Methods

| Improve this Doc View Source

GetAuthorAsync(String, String, CancellationToken)

Declaration
public Task<Author> GetAuthorAsync(string id, string platform, CancellationToken ct = null)
Parameters
Type Name Description
System.String id
System.String platform
CancellationToken ct
Returns
Type Description
Task<Author>
| Improve this Doc View Source

GetPostsAsync(String, String, CancellationToken)

Declaration
public IAsyncEnumerable<Post> GetPostsAsync(string id, string platform, CancellationToken ct = null)
Parameters
Type Name Description
System.String id
System.String platform
CancellationToken ct
Returns
Type Description
IAsyncEnumerable<Post>

Implements

IScraperService
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX