Giter Site home page Giter Site logo

csdnvisit's Introduction

csdnVisit

CSDN博客访问量工具

一、 Introduction【介绍】

CSDN Blog's 刷访问量脚本 (CSDN通过cookie来统计访问量)

首先遍历获取文章列表,提取每篇博客的地址id

再通过file_get_contents函数访问这些地址

将博客中所有文章访问一遍,从而达到刷访问量的目的


二、 特点

  • 使用方便
  • 暂支持多种皮肤的正则匹配,扩展方便
  • 使用只需修改
/* * * * * * 需要修改的地方* * * * * *  */
$username="ityangs";//文章列表页的用户标识
$page_count=5;//文章的总页数
$visit_count=10; //每篇文章访问次数
/* * * * * * 需要修改的地方* * * * *  */
  • 访问自动随机更换来访IP和添加浏览器标识

三、 使用方式

  • Linux【cli模式下执行】
    • 方法一:cli模式下执行
    php /var/www/my/csdn/csdnVisit.php
  • 方法二:定时任务
    crontab -e
    //这条语句就可以在每2小时的0分钟,通过linux内部php环境执行csdnVisit.php
    00 */2 * * * php /var/www/my/csdn/csdnVisit.php

-Windows【cli模式下执行】

  • 方法一:cli模式下执行
    php d:/www/csdnVisit.php
  • 方法二:定时任务也可以

csdnvisit's People

Contributors

ityangs avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

jkobe824

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.