akregator/src/librss
RSS::FeedDetector Class Reference
a class providing functions to detect linked feeds in HTML sources More...
#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
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:
-
s the html source to scan (the actual source, no URI)
- Returns:
- a list containing the detected feeds
Definition at line 108 of file feeddetector.cpp.
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:
-
s the 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: