We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    Hi there.
    I need to pull in an RSS feed from a Google Alert.
    I have installed getFeed extra (https://docs.modx.com/extras/revo/getfeed):
    [[!getFeed? &url=`https://www.google.co.uk/alerts/feeds/02743532428850709785/10530558247079269157` &tpl=`newsFeedTestTpl` &limit=`5`]]
    


    It pulls in the headlines of the stories fro the feed - but nothing else. I have the following TPL:

    <div>
        <a href="[[+link]]">
            <h3>Title: [[+title]]</h3>
            <p>Description: [[+description]]</p>
            <p>Summary: [[+summary]]</p>
            <p>Guid: [[+guid]]</p>
            <p>Author: [[+author]]</p>
            <p>category: [[+category]]</p>
            <p>Date/Timestamp: [[+date_timestamp]]</p>
            <p>Published: [[+pubDate]]</p>
        </a>
    </div>
    



    Has anyone used this before with a Google Alert RSS feed?
    Or any other RSS Extras you have used successfully?

    Thanks
    Andy
      • 3749
      • 24,544 Posts
      Looking at the only Google Alert API docs I could find, it looks like what you're getting is all that's available. I could be wrong.

      The actual Google Alerts web page has links to more information that look like this:

      https://www.google.co.uk/alerts#1:1
      https://www.google.co.uk/alerts#1:5


      Unfortunately, there doesn't seem to be any sense to the numbering, so I don't see a way to associate a link with a headline.

      If you really need more stuff, scraping the https://www.google.co.uk/ website might the the only option. [ed. note: BobRay last edited this post 5 years, 1 month ago.]
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 51020
        • 670 Posts
        Quote from: BobRay at Feb 22, 2019, 07:08 PM
        Looking at the only Google Alert API docs I could find, it looks like what you're getting is all that's available. I could be wrong.

        The actual Google Alerts web page has links to more information that look like this:

        https://www.google.co.uk/alerts#1:1
        https://www.google.co.uk/alerts#1:5


        Unfortunately, there doesn't seem to be any sense to the numbering, so I don't see a way to associate a link with a headline.

        If you really need more stuff, scraping the https://www.google.co.uk/ website might the the only option.

        Thank you for this bob - I will see if there's another way of doing this - I may have to use a third party aggregator instead

        Thanks again
        Andy