Reverse engineering help needed!

7 replies
How did this site manage to get agoda search results to show up?

http://muine-hotels.com/en/news/Hote...oc-island-148/

Thanks guys!
#engineering #needed #reverse
  • Profile picture of the author Sid Hale
    They have included a script on the page that passes searches back to Agoda.

    See Affiliate Tools at https://partners.agoda.com/affiliate.html
    Signature

    Sid Hale
    Coming Soon... Rapid Action Profits (Pro)

    {{ DiscussionBoard.errors[9800037].message }}
  • Profile picture of the author webmaster2015
    Originally Posted by travelsoulja View Post

    How did this site manage to get agoda search results to show up?

    Cheap hotels & resorts on Phu Quoc island - Mui Ne - Hotels

    Thanks guys!
    I can't open the link you gave but in any case you can research API to see how sites collect data from other sites.
    Signature
    If you do classified advertising
    You need a Delayed Autoreply Service
    {{ DiscussionBoard.errors[9800135].message }}
  • Profile picture of the author travelsoulja
    there is no api, just javascript. the link works
    {{ DiscussionBoard.errors[9800559].message }}
    • Profile picture of the author DubDubDubDot
      Originally Posted by travelsoulja View Post

      there is no api, just javascript.
      I don't see any relevant javascript in the code. Looks like they are processing the results server side.

      If it were javascript you'd see something right around line 410 where the "bodytext" DIV is.
      {{ DiscussionBoard.errors[9801748].message }}
      • Profile picture of the author Sid Hale
        You didn't look hard enough.

        Originally Posted by DubDubDubDot View Post

        I don't see any relevant javascript in the code. Looks like they are processing the results server side.

        If it were javascript you'd see something right around line 410 where the "bodytext" DIV is.
        There are 2 Agoda java scripts invoked on the page near the bottom of the "wrapper" DIV.

        The first is from src="http://ajaxsearch.partners.agoda.com/partners/SearchBox/Scripts/Agoda.SearchBoxV2.js"

        and the other is pasted directly in the page

        Code:
        <script type="text/javascript">
        var AgodaSearch = new AgodaSearchBox({
        cid: 1641757,
        filterCityName: 'Phan Thiet',
        fixedCityName: false,
        fixedCityNameVisible:true,
        hotelID: '',
        checkInDateBefore:3,
        night:2,
        language:1,
        currencyCode: 'USD',
        newWindow: true,
        header: 'http://muine-hotels.com/uploads/banners/header-searchbox-agoda.png',
        footer: 'http://muine-hotels.com/uploads/banners/footer-searchbox-agoda.png',
        style: 'agodasearchbox',
        Element: 'SearchBox'
        });
        </script>

        Try looking at line 653
        Signature

        Sid Hale
        Coming Soon... Rapid Action Profits (Pro)

        {{ DiscussionBoard.errors[9801872].message }}
  • Profile picture of the author vikash_kumar
    Yes! Thats a javascript.... But I must say...You have shared a very good idea to work with... Thanks!
    {{ DiscussionBoard.errors[9800888].message }}
  • Profile picture of the author travelsoulja
    So it is done via API?
    {{ DiscussionBoard.errors[9803396].message }}

Trending Topics