刷百度下拉关键词

刷百度下拉关键词

刷百度下拉关键词 http://www.tongqiong.com/read.php?tid-91-ds-1.html
  1. $url1="http://www.baidu.com/s?bs=www.naligouwu.com&f=8&rsv_bp=1&wd=%CD%F8%C9%CF%B9%BA%CE%EF%CD%F8%D5%BE%B4%F3%C8%AB&inputT=".rand(500,3000)."";
  2. $url2="http://www.baidu.com/s?bs=%C4%C4%C0%EF%B9%BA%CE%EF&f=8&rsv_bp=1&wd=%B9%BA%CE%EF&inputT=".rand(500,3000)."";
  3. $url3="http://www.baidu.com/s?bs=www.naligouwu.com&f=8&rsv_bp=1&wd=naligouwu&inputT=".rand(500,3000)."";
  4. $url4="http://www.baidu.com/s?bs=%C4%C4%C0%EF%B9%BA%CE%EF&f=8&rsv_bp=1&wd=naligouwu&inputT=".rand(500,3000)."";
  5. function parseUrl($url)
  6. {
  7. $parse_url = parse_url($url);
  8. return (!empty($parse_url['scheme']) && !empty($parse_url['host']));
  9. }
  10. //获取url的内容
  11. function getUrlContent($url)
  12. {
  13. $content = '';
  14. if(!parseUrl($url))
  15. {
  16. $content = @file_get_contents($url);
  17. }
  18. else
  19. {
  20. if(function_exists('curl_init'))
  21. {
  22. $ch = curl_init();
  23. curl_setopt($ch, CURLOPT_URL,$url);
  24. curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  25. curl_setopt($ch, CURLOPT_USERAGENT, _USERAGENT_);
  26. curl_setopt($ch, CURLOPT_REFERER,_REFERER_);
  27. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  28. $content = curl_exec($ch);
  29. curl_close($ch);
  30. }
  31. else
  32. {
  33. $content = @file_get_contents($url);
  34. }
  35. }
  36. return $content;
  37. }
  38. getUrlContent($url1);
  39. getUrlContent($url2);
  40. getUrlContent($url3);
  41. getUrlContent($url4);
  42. echo "成功";
  43. //作者:www.tongqiong.com
  44. ?>
复制代码


09-18 23:08