Coder Social home page Coder Social logo

lexburnerfucker's Introduction

fuckLexBurner

由下水道居民制作,运行后自行设定以x秒间隔获取lexBurner粉丝数量并保存至同目录txt文件下。

use with multiple threads:

import fuckLex,_thread

try:
    _thread.start_new_thread(fuckLex.getTextAndWrite, ('fuckLex.txt',)) #获取数据写入fuckLex.txt
    _thread.start_new_thread(fuckLex.outPutDecreseStringInterval, ('fuckLex.txt', 60, 'fuckLexOutput.txt',) ) #朴素地分析数据并写入fuckLexOutput.txt
except:
    print("Error: 无法启动线程")

while 1:
    pass

basic usage

getTextAndWrite(filename):

descrption: get the fans sum and write it into 'fuckLex.txt'
params: String
return: null

import fuckLex
fuckLex.getTextAndWrite('fuckLex.txt')

get():

descrption: get current fans count
Params: null
return: int

import fuckLex
print(fuckLex.get())

calcDecreseSum(filename):

descrption: get the decreseSum
Params: String
return: int

import fuckLex
print(fuckLex.calcDecreseSum('fuckLex.txt'))

outPutDecreseString(filename):

descrption: get the decrese String
Params: String
return: String

import fuckLex
print(fuckLex.outPutDecreseString('fuckLex.txt'))

-->from Mon Feb 8 11:42:27 2021
to Mon Feb 8 15:08:37 2021
lexBurner fans decresed: 50925

outPutDecreseStringInterval(filename, interval):

descrption: get the decrese String at certain interval
Params: String, int
return: null

import fuckLex
print(fuckLex.outPutDecreseStringInterval('fuckLex.txt', 60))

outPutDecreseStringIntervalToFile(filename, interval, destfilename):

descrption: get the decrese String at certain interval and write record into certain file
Params: String, int, String
return: null

import fuckLex
print(fuckLex.outPutDecreseStringInterval('fuckLex.txt', 60, 'fuckLexOutput.txt'))

lexburnerfucker's People

Contributors

pinkcao avatar

Stargazers

TinyWang avatar

Watchers

 avatar

lexburnerfucker's Issues

github屑站

到现在github里都极少有关蕾蝗的repo,气抖冷

下水道码🐒 Lives Matter!

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.