Interface IPlatformScraper
Scrapes a specific platform
Namespace: Scraper.Net
Assembly: Scraper.Net.dll
Syntax
public interface IPlatformScraper
Methods
| Improve this Doc View SourceGetAuthorAsync(String, CancellationToken)
Finds an author by id
Declaration
Task<Author> GetAuthorAsync(string id, CancellationToken ct = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Author id |
CancellationToken | ct | Cancellation token |
Returns
Type | Description |
---|---|
Task<Author> | Task of an Author |
GetPostsAsync(String, CancellationToken)
Finds posts by author id
Declaration
IAsyncEnumerable<Post> GetPostsAsync(string id, CancellationToken ct = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Author id |
CancellationToken | ct | Cancellation token |
Returns
Type | Description |
---|---|
IAsyncEnumerable<Post> | Async-enumerable of posts |