PSO2 news scraper.
Supports the following news sites:
- PSO2
- PSO2es
- PSO2 Global (No maintenance parsing)
- PSO2 NGS CBT
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);
}
}
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.