zoukankan      html  css  js  c++  java
  • python实现博客自动刷点击脚本

    #A Auto-Visit Web Site Tool
    import urllib
    import time
    import random
    print "Auto Click the WebPage for Click-Num..."
    for i in range(30):
        fs = urllib.urlopen(r'http://blog.csdn.net/wangyaninglm/article/details/7243970')
        print 'The ', i, 'time click done...'
        time.sleep(int(random.uniform(10, 25)))
    print 'Auto Click WebPage Done...'


    Auto Click the WebPage for Click-Num...
    The  0 time click done...
    The  1 time click done...
    The  2 time click done...
    The  3 time click done...
    The  4 time click done...
    The  5 time click done...
    The  6 time click done...
    The  7 time click done...

    但是如果网站记录ip地址防止刷呢?学校的网络又是根据,mac来分配地址的

    所以要调用python执行一些脚本,更改mac地址,释放ip,重新获取,刷新dns

    待续。。。

  • 相关阅读:
    img 的data-src 属性及懒加载
    try catch 用法
    input 的各种属性的验证 checkValidity兼容性
    表单提交的方法。
    通信原理
    计算机组成原理
    CREC 2017
    POJ 1201 Intervals
    HDU 3440 House Man
    poj 3169 Layout
  • 原文地址:https://www.cnblogs.com/wangyaning/p/4236971.html
Copyright © 2011-2022 走看看