Show / Hide Table of Contents

Class FacebookScraper

IPlatformScraper for providing Facebook posts. The scraping engine is powered by the python library facebook-scraper https://github.com/kevinzg/facebook-scraper

Inheritance
System.Object
FacebookScraper
Implements
IPlatformScraper
Namespace: Scraper.Net.Facebook
Assembly: Scraper.Net.Facebook.dll
Syntax
public class FacebookScraper : object, IPlatformScraper

Constructors

| Improve this Doc View Source

FacebookScraper(FacebookConfig, ILoggerFactory)

Declaration
public FacebookScraper(FacebookConfig config, ILoggerFactory loggerFactory)
Parameters
Type Name Description
FacebookConfig config
ILoggerFactory loggerFactory

Methods

| Improve this Doc View Source

GetAuthorAsync(String, CancellationToken)

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

GetPostsAsync(String, CancellationToken)

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

Implements

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