Interface IScraperService
Provides multi-platform scraping capabilities
Namespace: Scraper.Net
Assembly: Scraper.Net.dll
Syntax
public interface IScraperService
Methods
| Improve this Doc View SourceGetAuthorAsync(String, String, CancellationToken)
Finds an author in a platform by id
Declaration
Task<Author> GetAuthorAsync(string id, string platform, CancellationToken ct = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | Author id |
| System.String | platform | Platform to query |
| CancellationToken | ct | Cancellation token |
Returns
| Type | Description |
|---|---|
| Task<Author> | Task of an Author |
GetPostsAsync(String, String, CancellationToken)
Finds posts in a platform by author id
Declaration
IAsyncEnumerable<Post> GetPostsAsync(string id, string platform, CancellationToken ct = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | Author id |
| System.String | platform | Platform to query |
| CancellationToken | ct | Cancellation token |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<Post> | A finite async-enumerable of the posts |