Code Monkey home page Code Monkey logo

cookies_pool-personal-'s Introduction

cookies_pool

个人建立的新浪登陆cookies池(可扩展),使用redis数据库,selenium登陆,flask实现api接口

安装

pip3 install -r requirements.txt

配置文件

在config.py中修改

数据库

使用redis数据库,导入新浪账号密码运行get_account.py,可根据实际情况自行修改

验证码识别

暂时只是个人练习,因此使用了人工识别验证码,运行后需要输入验证码时会自动下载验证码到“验证码”文件夹,

使用了easygui用作验证码的输入窗口,验证码图片输入后自动删除,保证文件夹中只存在一张验证码图片以方便查看

效果如下:

可修改generator.py中的_yzm函数更改验证码识别方式,可自行扩展(如云打码,OCR识别等)

运行

python3 run.py

可根据需要在config.py修改开启进程

api

在浏览器输入localhost:5000/weibo/random随机获取得到的cookies

cookies_pool-personal-'s People

Contributors

cjxhaaa avatar

Stargazers

Mickeyxv avatar

Watchers

James Cloos 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.