karashiiro / PSO2News

PSO2 news scraper.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

PSO2 news scraper.

License:MIT License


Languages

Language:C# 100.0%