Hi,
In an Atom feed, I am trying to extract parts of the posts. Meaning here, the first 50 words of each post.
I am able to extract easily the standard stuff with XML::Feed, like "author", "link", "published" or "title".
If I use "content", I get nothing. If I could get "content" extracted, I could manage to get what I want.
Or if I use "name", which is a sub element of "author", I also get nothing.
I was thinking of putting in the blog (from Blogger) some tags like this (in the post HTML edit):
<extract>text to extract</extract>
But I can't find a way to do it, unless rewriting the code from Feed.pm
Is there a simple way, if I can call it like that?
The Atom feed is from blogger:
http://www.stlucia-off-the-beaten-path.com/
Thanks in advance
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.