Solved

Review feed on website

Posted on 2013-02-07
11
942 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
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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
 

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

777 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