There is a search.php use to file_get_contents
get"http://www.baidu.com/s?wd=$keyword"
Which $keyword
comes from the parameters of the search.php WD
Search.php file_get_contents
After a few substitutions, the last echo content
Then is the use of jQuery, removed some elements of Baidu.
The next question is how to change the Baidu search box next to the "Baidu" submit button action path
, there was a submit in the form, and I changed the Action property of the form it was in, with no effect.
I hope the behavior is 'search.php?wd='+$('#kw').val()
not'/s?wd='+$('#kw').val()
Also analyzed the Baidu script. It's definitely messy.
Reply content:
There is a search.php use to file_get_contents
get"http://www.baidu.com/s?wd=$keyword"
Which $keyword
comes from the parameters of the search.php WD
Search.php file_get_contents
After a few substitutions, the last echo content
Then is the use of jQuery, removed some elements of Baidu.
The next question is how to change the Baidu search box next to the "Baidu" submit button action path
, there was a submit in the form, and I changed the Action property of the form it was in, with no effect.
I hope the behavior is 'search.php?wd='+$('#kw').val()
not'/s?wd='+$('#kw').val()
Also analyzed the Baidu script. It's definitely messy.
Please make sure that the form is submitted using JS.
C.delegate("form", "submit", function() { C.find("iframe").on("load", function() { E() }); setTimeout(E, 1000) })
Analysis of Baidu Nu_instant_search.js time to find this piece of code, but I always can not find e this function.