Code Monkey home page Code Monkey logo

baidukeywords's Introduction

baidukeywords

百度关键词排名批量查询

##20191115更新 多线程版本 indexs.php 单线程版本 index.php

测试说明 在phpstudy2018中,Apache环境可以正常使用 php-5.4.45+Apache php-7.2.10-nts+Apache 速度快一些.

在phpstudy8.0中,有问题,不知原因.

默认搜索前10页的排名情况 可以自行修改 indexs.php中 第9行for($p = 1;$p <=10;$p++){ 修改数字10

index.php中 if($page > 10){ $res .= ''.$keyword.'05页之外';

修改这两行中的数字5即可

因为是通过即时查询百度结果,大概每页要1s左右的时长,具体视服务器性能和带宽影响

所以查询的时候要注意关键词的数量

例如要查询前5页的排名情况

每个词要查5页,每页1s

每个词大概要5s,如果服务器性能好,每词可以大概到1s的时长,具体可以自行测试.

网址中可以填写网址或者是网站绑定的百家号(商家号)名称,视自己的情况决定

因简单的实现功能,未做更多优化.

如用于商业环境,建议自行优化.

分享仅作学习交流,请勿恶意评论和用于非人道主义行为.

且行且珍惜

baidukeywords's People

Contributors

shadoweb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.