通过爬虫方式实现视频号助手发布视频

1、将真实的cookie贴到解压后目录中cookie.txt文件里,修改python代码里的user_agent和video_path, cover_path等变量的值,最后运行python脚本即可;

2、运行之前根据import提示安装一些常见依赖,比如requests等;

3、2025年1月份最新版;

代码如下:

import json
import time

import requests
import os
import uuid
import datetime
import subprocess
import math


def get_file_content(file_path):
    file_content = ''
    with open(file_path, 'r') as file:
        file_content = file.read()
    return file_content.strip()


def get_auth_info(cookie_content, user_agent):
    request_url = "https://channels.weixin.qq.com/cgi-bin/mmfinderassistant-bin/helper/helper_upload_params"

    headers = {
        'Origin': 'https:

你可能感兴趣的:(蜘蛛侠,python,网络协议,爬虫,网络爬虫,后端)