• 1) I have the following HTML in a post:

    <time class="entry-date published" datetime="2015-12-22T23:52:37+00:00">December 22, 2015</time>

    I can use the ginner to get “December 22, 2015” but that is not what I want. I want to get the value of the attribute datetime. I would like to get “2015-12-22T23:52:37+00:00”. How can I get this, i.e. get an attribute’s value?

    If I could use regular expressions in the replace function then I could get it very easily like this:

    replace|{line}|<time class="entry-date published" datetime="(.*)">.*</time>|$1|

    Please consider allowing regular expressions in the replace. It would be ***very, very*** useful and powerful.

    2) In WordPress.com RSS feeds, they do not use <enclosure> but include the WordPress categories and tags assigned to a post. Both are coded as:

    <category><![CDATA[... category name goes here ...]]></category>

    Is there anyway to get ‘<![CDATA[… category name goes here …]]>` from the RSS feed?

    Then once I have that, if I could use regular expressions in the HTML parser replace function I could extract “… category name goes here …” very easily, like this:

    replace|{line}|<![cdata[(.*)]]>|$1|

    3) I’m still confused about the meta processor. Can you give an example of how it is used and explain exactly what information it used for?

    4) Also for the metakey destination. Can you give an example of where its information goes in the post?

    5) I still don’t understand, what is “fix time”. I read the documentation here:
    https://docs.google.com/document/d/1DOwgYcMJnzFdybhQN7n1CdZVK1bSa2ZHqbO1CumpjUs/edit?pref=2&pli=1#

    And it says:

    “This Option will set a lag time between time article being published in the source and the time outputted by obGrabber RSS Reader Engine. By default it is set to -24, meaning the outputted time will be 24 hours earlier than the publish time of your original article.”

    But I don’t understand what this means. Can you give an exact example with times.

    6) Also can you explain the cache? It is unclear what is being cached and where?

    7) When I use the ginner on the demo html parser to get inside an tag, it still returns the full a tag as if it was not ginned. Looks like a bug. Also how to specify an tag which has no class or id?

    Thx

    https://wordpress.org/plugins/wp-pipes/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Tung Pham

    (@phamtungpth)

    Hi Nanowisdoms,

    You bought HTML Parser processor, didn’t you? Please create new topic at our forum https://thimpress.com/forums/forum/plugins/forum-pipes/ and provide a temporary admin account. I will help you create a reference pipe. With that pipe, you could understand more how WPPipes works.

    Get Meta processor’s output: http://awesomescreenshot.com/0d85kcc00e

    “Fix Time”: if the publish date of an item of your RSS feed is 2016-1-20 17:20 and the value is -24, [so] date will be 2016-1-19 17:20

    Regards!

    Thread Starter NanoWisdoms

    (@nanowisdoms)

    Yes I have purchased it and I will create the topic on your forum with temporary admin account.

    Why would you need to fix the time of a post in an RSS feed? Are they not accurate or have the wrong time zone?

    Thread Starter NanoWisdoms

    (@nanowisdoms)

    REPOST OF ORIGINAL FOR REFERENCE BECAUSE ORIGINAL DID NOT FORMAT CORRECTLY

    DO NOT REPLY!!!
    ———————-
    1) I have the following HTML in a post:

    <time class="entry-date published" datetime="2015-12-22T23:52:37+00:00">December 22, 2015</time>

    I can use the ginner to get “December 22, 2015” but that is not what I want. I want to get the value of the attribute datetime. I would like to get “2015-12-22T23:52:37+00:00”. How can I get this, i.e. get an attribute’s value?

    If I could use regular expressions in the replace function then I could get it very easily like this:

    replace|{line}|<time class="entry-date published" datetime="(.*)">.*</time>|$1|

    Please consider allowing regular expressions in the replace. It would be ***very, very*** useful and powerful.

    2) In WordPress.com RSS feeds, they do not use <enclosure> but include the WordPress categories and tags assigned to a post. Both are coded as:

    <category><![CDATA[... category name goes here ...]]></category>

    Is there anyway to get ‘<![CDATA[… category name goes here …]]>` from the RSS feed?

    Then once I have that, if I could use regular expressions in the HTML parser replace function I could extract “… category name goes here …” very easily, like this:

    replace|{line}|<![cdata[(.*)]]>|$1|

    3) I’m still confused about the meta processor. Can you give an example of how it is used and explain exactly what information it used for?

    4) Also for the metakey destination. Can you give an example of where its information goes in the post?

    5) I still don’t understand, what is “fix time”. I read the documentation here:<br>
    https://docs.google.com/document/d/1DOwgYcMJnzFdybhQN7n1CdZVK1bSa2ZHqbO1CumpjUs/edit?pref=&pli=1#

    And it says:

    “This Option will set a lag time between time article being published in the source and the time outputted by obGrabber RSS Reader Engine. By default it is set to -24, meaning the outputted time will be 24 hours earlier than the publish time of your original article.”

    But I don’t understand what this means. Can you give an exact example with times.

    6) Also can you explain the cache? It is unclear what is being cached and where?

    7) When I use the ginner on the demo html parser to get inside an <a> tag, it still returns the full a tag as if it was not ginned. Looks like a bug. Also how to specify an <a> tag which has no class or id?

    Thx

    Plugin Contributor Tung Pham

    (@phamtungpth)

    Hi Nanowisdoms,

    I answered you at thimpress forum. Please keep following that topic!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘7 questions’ is closed to new replies.