Code Monkey home page Code Monkey logo

twitter-lottery's Introduction

简介

Twitter抽奖机器人,根据录入的大V地址,自动转发、点赞、关注等操作,参与抽奖

View Demo users watch

开发环境

后端

  • MySQL 8.0
  • Redis 7.0
  • JDK 1.8
  • Maven 3.8

前端

  • React 17.0.2
  • Nginx

部署

  • docker
  • docker-compose

Clone this repo

  • npm install to install all req'd dependencies
  • npm run start to start the local server

配置

数据库配置修改

spring.datasource.url=jdbc:mysql://xx:6396/twitter?currentSchema=referral
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=xx
spring.datasource.password=xx
spring.datasource.type=com.zaxxer.hikari.HikariDataSource 

spring.redis.host=xx
spring.redis.port=6379
spring.redis.password=xx
spring.redis.timeout=5000

抽奖主要逻辑

  • 获取所有被监控的大V用户
  • 查看这些用户的新发送的Twitter
  • 根据规则过滤掉不适合转发的Twitter
  • 遍历所有参与抽奖的用户
  • 循环对所有推文进行点赞,转推,@Tag
  • 对参与抽奖的用户次数进行统计

twitter-lottery's People

Contributors

qfzc avatar

Stargazers

 avatar  avatar  avatar  avatar  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.