akregator/src/librss

RSS::FeedDetector Class Reference

#include <feeddetector.h>

Static Public Member Functions

static FeedDetectorEntryList extractFromLinkTags (const TQString &s)
 
static TQStringList extractBruteForce (const TQString &s)
 
static TQString fixRelativeURL (const TQString &s, const KURL &baseurl)
 

Detailed Description

a class providing functions to detect linked feeds in HTML sources

Definition at line 55 of file feeddetector.h.

Member Function Documentation

◆ extractBruteForce()

TQStringList FeedDetector::extractBruteForce ( const TQString &  s)
static

searches an HTML page for slightly feed-like looking links and catches everything not running away quickly enough.

Extracts links from <a href> tags which end with xml, rss or rdf

Parameters
sthe html source to scan (the actual source, no URI)
Returns
a list containing the detected feeds

Definition at line 108 of file feeddetector.cpp.

◆ extractFromLinkTags()

FeedDetectorEntryList FeedDetector::extractFromLinkTags ( const TQString &  s)
static

searches an HTML page for feeds listed in <link> tags <link> tags with rel attribute values alternate or service.feed are considered as feeds

Parameters
sthe html source to scan (the actual source, no URI)
Returns
a list containing the detected feeds

Definition at line 37 of file feeddetector.cpp.


The documentation for this class was generated from the following files: