Git Product home page Git Product logo

atri-bot's Introduction

ATRI-BOT

目前该项目主要用于搬运推特发送到微博的机器人BOT

运行项目需要准备以下文件


atri_bot/twitter/config.py

config.py里需要放入你的推特抓取API

字段:

consumer_key = ""

consumer_secret = ""

access_token = ""

access_token_secret = ""

client_id = ""

client_secret = ""

bearer_token = ""

#代理端口

proxy = ""


data_processing/datri_bot_db.json

此文件用于MySQL数据库文件连接

可以用项目中的atribot.sql来创建数据库

字段

{

   "host": "localhost",

   "port": 3306,

   "user": "root",

   "password": "",

   "database": "atribot", # 数据库名指定atribot

   "autocommit": true

}


data_processing/spider_user.txt

此文件用于维护收集推特用户列表,需要填写推特用户id

e.g

@TorinoAqua

@Bren_biren

@ainy120

@hanekoto2424

@canvas2929


项目运行

https://m.weibo.cn 登录你的微博账号

寻找m.weibo.cn的文件并提取其中的cookies

并保存在data_processing/setting.py中的WEIBO_COOKIES中

在运行前需要在data_processing/common/setting.py中修改你需要保存媒体文件的路径

PROFILE_IMAGE_PATH 是头像存储路径

MEDIA_IMAGE_PATH 是推文视频存储路径

MEDIA_VIDEO_PATH 是推文视频存储路径

并根据项目安装对应库

运行star.py即可

atri-bot's People

Contributors

kozakai-ayaya avatar wlkz avatar rengerenge avatar

Stargazers

 avatar

Watchers

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