Skip to content

zHaytam/PsawSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PsawSharp

PsawCharp is a simple wrapper around Pushshift's API that supports rate limits and proxies.

Example:

From the Tests project:

var client = new PsawClient(new RequestsManagerOptions
{
    ProxyAddress = "178.217.194.175:49850"
});

var meta = await client.GetMeta();
Assert.Equal("178.217.194.175", meta.SourceIp);
Assert.Equal("PL", meta.ClientRequestHeaders.CfIpCountry);
var client = new PsawClient();
var submmissions = await client.Search<SubmissionEntry>(new SearchOptions
{
    Subreddit = "game",
    Size = 1
});

Assert.Single(submmissions);

Releases

No releases published

Packages

No packages published

Languages