Giter Site home page Giter Site logo

weibo_points's Introduction

简介

这是一个微博超话自动获取积分的工具,每天获取积分特别麻烦,所以写了这个代码来自动完成

功能

  • 发送积分贴到超话
  • 自动评论积分贴(可以带链接)
  • 自动vip 签到 and pk
  • 连续访问积分
  • 超话登录积分

流程图

流程图

安装

1.下载脚本

$ git clone https://github.com/wxy1343/weibo_points

2.安装依赖

$ pip install -r requirements.txt

使用

1.运行脚本

$ python main.py

2.获取gsid

1.用Chrome打开https://m.weibo.cn/login
2.登录成功后,按F12键打开Chrome开发者工具
3.点击Chrome开发者工具中的Network->Name中的m.weibo.cn->Headers->Request Headers->cookie->SUB等于号后面到封号里的值就是gsid gsid

weibo_points's People

Contributors

wxy1343 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

weibo_points's Issues

输入gsid后报错

错误如下:
Traceback (most recent call last):
File "main.py", line 1502, in
zero_handle(True)
File "main.py", line 1231, in zero_handle
for info in get_weibo_info(gsid):
File "main.py", line 445, in get_weibo_info
title = r.json()['data']['statuses'][i]['raw_text'][:-2]
KeyError: 'raw_text'

有点问题用不了耶...

Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\weibo_points-master\main.py", line 1627, in <module>
    cid = find_super_topic(st_name)
  File "C:\Users\Administrator\Desktop\weibo_points-master\main.py", line 1020, in find_super_topic
    return re.findall('100808[\d\w]{32}', r.text)[0]
IndexError: list index out of range

报错了,空列表嘛

关于 cookie 获取

测试得到 cookie 有效期, 大概只有四个小时, 有办法将获取 cookie 这里自动化掉吗
本来想要通过 selenium 做, 但是看到现在微博所有登录都要扫码了, 不知道可以解决吗

微博超话客户端签到接口的获取

请问,微博超话客户端签到接口是怎么获取的到的,想学习一下,我抓微博超话客户端获取的post的请求,而代码中是get请求,并且很好使

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.