#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Posts
    228
    Rep Power
    0

    How does Yandex do its trick?


    How does Yandex do its trick?

    I want to programatically get the contents of a Yandex.com search result.

    The proglem is that a search page url does not change when you do a search on yandex.com and advance to see more pages. It must be done somehow by javascript. Any ideas?
  2. #2
  3. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,009
    Rep Power
    2791
    It changes for me, in all browsers. Example: http://www.yandex.com/yandsearch?text=devshed.

    However, you may be viewing a different page from me. The answer that you are probably looking for lies here.
    [PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

    W3Fools - A W3Schools Intervention.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Posts
    228
    Rep Power
    0
    Originally Posted by Winters
    It changes for me, in all browsers. Example: http://www.yandex.com/yandsearch?text=devshed.

    However, you may be viewing a different page from me. The answer that you are probably looking for lies here.
    That is just one page. That is not what I mean. Go to that page again and scroll down to the bottom of tha page and click the "Show More" button. Notice that the URL, http://www.yandex.com/yandsearch?text=devshed does not change in the address bar of the browser.

    All other search engines have an ID in the url that show what page you are on and that easily lends itself towarda a programmer making a meta search engine based on several search engines. Yet yandex does not do that.

    I am using IE. Here are the steps.

    1. Open IE and go to www.yandex.com
    2. Type some text to search for.
    3. The web site changes, and yes, the URL changes one time to show the results page.
    4. But this is the only change. If you scroll down to the bottom of the page and click to advance to another page of results, the URL never changes but the results content expands.
    5. Now, after you have clicked to show more results a few times so that you have about one hundred search results, and click in the IE browser to view the HTML source code, and save that source into an html page and load that content back into the browser, you will only see the first page of search results and the button to see more content is not displayed.

    So this makes it difficult to use this search results programatically unless you know this trick.

IMN logo majestic logo threadwatch logo seochat tools logo