+ Reply to Thread
Results 1 to 5 of 5

RSS feed plus Twitter share data into an excel file?

  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question RSS feed plus Twitter share data into an excel file?

    I have what might be an advanced problem I need to solve. To you maybe it's not advanced, to me, it is : ).

    By way of example, here's what I'm after. On popular blogs, you'll often see a blog article and on the left side of the article will be the Social share icons/chicklets (such as an icon to share the article on Twitter, one to share on Facebook etc). Those share icons normally also show the number of times this article has been shared on that social network.

    I want to have an xls file with 5 columns that will load the RSS feed of a particular blog site, plus the social share count, and come out with the following columns:

    Column 1: Name of the blog
    Column 2: Title of the blog article
    Column 3: Date of the blog article
    Column 4: URL to the blog article
    Column 5: Number of Twitter shares that that article has had

    It's Column #5 that is the tough one.

    I'm sure someone could easily whip up an xls with columns 1-4 for me, but does someone have an xls file that they can share with me that can pull in the number of Twitter shares as well?

    Image of the Twitter shares data I'm talking about:
    twittershares.jpg

    Image of what the final xls file would look like:
    xls.png

    (Note: I have Excel 2003 now, but can upgrade to 2007 if necessary)

  2. #2
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: RSS feed plus Twitter share data into an excel file?

    You are going to need to learn how to use references to Microsoft HTML Object Library and Microsoft Internet Controls or else how do you intend to be able to even tell VBA what elements you want to grab from the page? And different web sites contain different ID value and names, so you may need to create different macros for different sites, or make if-then statements. Even though this is VBA, this is more of an IE automation thing, and this isnt probably the greatest forum for asking about IE automation. In this case, google is your friend.

    http://www.w3schools.com/htmldom/default.asp
    http://www.access-programmers.co.uk/...d.php?t=195033
    http://www.makeuseof.com/tag/basic-i...t-browser-vba/
    http://www.excely.com/excel-vba/ie-automation.shtml


    If you do not have a basic understanding of VBA, you are going to be in the doghouse with such a monumental project

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: RSS feed plus Twitter share data into an excel file?

    There's no need to use Internet Explorer, rss feeds are just xml and libraries are available for parsing xml.

    The twitter things is a little more complex, but not much, we just do a direct call to the twitter api passing in the url of the article, for the feedburner link from the blogspot page:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: RSS feed plus Twitter share data into an excel file?

    Quote Originally Posted by Kyle123 View Post
    There's no need to use Internet Explorer, rss feeds are just xml and libraries are available for parsing xml.

    The twitter things is a little more complex, but not much, we just do a direct call to the twitter api passing in the url of the article, for the feedburner link from the blogspot page:
    Please Login or Register  to view this content.
    Wow, yeah makes sense to go for the RSS feed then, didnt even think about that. That is way too cool.

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: RSS feed plus Twitter share data into an excel file?

    There's usually always a better option that automating IE, it's really slow for numerous reasons. You can normally call services directly without involving a browser, all you need are development tools for the browser - that's where I found the twitter api call. It is requested for each article on the blog roll.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1