iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://github.com/karashiiro/PSO2News
GitHub - karashiiro/PSO2News: PSO2 news scraper.
Skip to content

karashiiro/PSO2News

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuget

PSO2News

PSO2 news scraper.

Supports the following news sites:

Installation

Install-Package PSO2News

Example

var tracker = new PSO2NewsTracker(NewsSource.PSO2);
await foreach (var post in tracker.GetNews().Where(n => n.Type == NewsType.Announcement))
{
    if (post is ComicNewsInfo cni)
    {
        Console.WriteLine(cni.Title);
    }
}

Notes

The regex mess I'm using for maintenance parsing does not catch every possible formatting case -- it particularly fails on unusual maintenance update announcements. In the event that a post fails to be parsed, the boolean property Unreadable will be set to true.