Quote:
Originally Posted by rnd me
the url was changing for me.
|
not from the first search results page to the second.
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.
Quote:
Originally Posted by rnd me
it looked pretty quick, maybe they are using pushState() to set history.
it's jsonp, not ajax that they use, so you should be able to rip it off yourself.
example:
Code:
<script src='http://www.yandex.com/yandsearch?callback=console.log&yu=7901815871353110738&text=obama&lr=102943&ajax=%7B%22b-serp%22%3A%7B%7D%2C%22b-search__input%22%3A%7B%7D%2C%22b-filters%22%3A%7B%7D%2C%22b-serp2-list%22%3A%7B%7D%2C%22b-more%22%3A%7B%7D%2C%22b-feet%22%3A%7B%7D%7D&_=1353110804690'></script>
adjust the red to customize
|
I just learned something.
Putting '&p=' at the end of the URL actually works.
http://www.yandex.com/yandsearch?text=javascript
http://www.yandex.com/yandsearch?text=javascript&p=2
http://www.yandex.com/yandsearch?text=javascript&p=3
Now I would like to figure out how another search engine does this. I am talking about
www.duckduckgo.com which is also a very popular search engine. It too does not display a different URL in the address bar of the browser as I advance through more content.
And the display for
http://duckduckgo.com/?q=javascript&p=100
is no different from
http://duckduckgo.com/?q=javascript
When I tried
http://duckduckgo.com/?q=javascript&page=1
it thew a 403 forbidden error.