Solved

Review feed on website

Posted on 2013-02-07
11
938 Views
Last Modified: 2013-11-18
Hi Experts

I'm redesigning a website for someone and i thought it would be neat to have they're Trip Advisor reviews show on the front page. Is it possible to have it done and automatically update itself ? or would it have to be a manual input job?

Thanks
0
Comment
Question by:emlynrg
  • 6
  • 3
  • 2
11 Comments
 
LVL 5

Expert Comment

by:Pyromanci
ID: 38864788
Trip Advisor has a RSS feed. You might be able to configure the feed to retrive the information you need, but I'm not sure i didn't read much of the their RSS Feed information.

If they feed can retrive the information you want you can actually use PHP or Javascript to parse the feed.

Php Feed Parser: http://magpierss.sourceforge.net/
Javascript Feed Parser: http://blog.bobcravens.com/2010/05/build-an-rss-feed-reader-with-jquery-and-jgfeed/
0
 

Author Comment

by:emlynrg
ID: 38864860
Cool, i'll have a read of that tonight, see if i can make something of it. Keep those suggestions coming just in case.
0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 500 total points
ID: 38864868
0
 
LVL 5

Expert Comment

by:Pyromanci
ID: 38865098
The problem with that is "TripAdvisor API content is for licensed partners only and is not publicly accessible. A partner key is required to access content from the API." So unless your a partner for TripAdvisor you wont be able to Access it. The RSS feeds are available to everyone.

I did do a little more reading and you can get the reviews in the RSS feed rather easily. There are 2 ways if your browser recognizes application/rss+xml tag link, like firefox, the RSS icon should appear in the address bar or status strip when you go to that business's page. You could then copy it from that icon.

Another way to get the feed for that companies page is to view the source and look for something like:
<link rel="alternate" type="application/rss+xml" title="RSS" href="/Feeds-d111582-treviews.xml"/>

Open in new window


and the just attach http://www.tripadvisor.com/ to the start of the href and you have your RSS link.
0
 

Author Comment

by:emlynrg
ID: 38869024
Hi experts

I managed to use one of their widgets to give me what i want, but now there is a small problem with the <hr> shown by the widget, they seem to extend outside of my page container, i've tried using the style and width attributes but it doesn't seem to make a difference. The widget itself is only supposed to be about 270 px according to trip advisor. any ideas?

heres a link to the website.

http://www.bandbcardigan.com/REDESIGN/V3/index.html
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Assisted Solution

by:emlynrg
emlynrg earned 0 total points
ID: 38869034
Ignore that last comment, it seems to have sorted itself out, i'm gonna split the points between the two of you as you both pushed me in the right direction. Just to clarify about the widgets, i needed access to the account registered to the property in order to get the widgets.

Thanks again experts.
0
 

Accepted Solution

by:
emlynrg earned 0 total points
ID: 38869056
I've requested that this question be closed as follows:

Accepted answer: 0 points for emlynrg's comment #a38869034
Assisted answer: 250 points for Pyromanci's comment #a38864788
Assisted answer: 250 points for leakim971's comment #a38864868

for the following reason:

I used the trip advisor widgets, i wasn't initially aware that they had one that displayed review information.
0
 
LVL 5

Expert Comment

by:Pyromanci
ID: 38869057
Points should go to leakim971 as he was the one who pointed out the widgets.
0
 

Author Comment

by:emlynrg
ID: 38869678
ok will do, thanks for taking the time to help Pyromanci, its much appreciated.
0
 
LVL 82

Expert Comment

by:leakim971
ID: 38869694
Thank you Pyromanci
Have a nice week-end!
0
 

Author Closing Comment

by:emlynrg
ID: 38883952
I used the trip advisor widgets, i wasn't initially aware that they had one that displayed review information.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now