Skip to main content

支持AI总结的社交媒体聚合解析器

Project description

ParseHub

支持AI总结的社交媒体聚合解析器

视频总结会调用 whisper-1 模型

安装

pip install parsehub

使用

from parsehub import ParseHub
from parsehub.config import ParseHubConfig
import asyncio


async def main():
    # ParseHubConfig.api_key = 'your_api_key'
    # ParseHubConfig.base_url = 'your_base_url'

    ph = ParseHub()
    result = await ph.parse('https://twitter.com/aobuta_anime/status/1827284717848424696')
    print(result)

    # download_result = await result.download()
    # print(download_result.media)
    # summary_result = await download_result.summary()
    # await download_result.delete()

    summary_result = await result.summary()
    print(summary_result.content)


if __name__ == '__main__':
    asyncio.run(main())

环境变量

名称 描述 默认值
DOUYIN_API 抖音解析API地址, 项目地址: https://github.com/Evil0ctal/Douyin_TikTok_Download_API https://douyin.wtf
PROVIDER 模型提供商, 暂只支持openai openai
API_KEY API Key
BASE_URL API 地址 https://api.openai.com/v1
MODEL AI总结使用的模型 gpt-4o-mini

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsehub-1.0.2.tar.gz (54.5 kB view details)

Uploaded Source

Built Distribution

parsehub-1.0.2-py3-none-any.whl (78.3 kB view details)

Uploaded Python 3

File details

Details for the file parsehub-1.0.2.tar.gz.

File metadata

  • Download URL: parsehub-1.0.2.tar.gz
  • Upload date:
  • Size: 54.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.16

File hashes

Hashes for parsehub-1.0.2.tar.gz
Algorithm Hash digest
SHA256 39642a93be00faba05ba5daa98caacc14e3aafa9ebe3f5099620df2c00e027a8
MD5 ced47432cd66abefc6571502b5f63d69
BLAKE2b-256 d30383a1f6880378f681e231ca4b3da39dbafcb877272666a6a11f3d2d1f922f

See more details on using hashes here.

File details

Details for the file parsehub-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for parsehub-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c7f010024145ed817b402d045f04796daccfdcb48496b32fe61622158fab4b1
MD5 436f3a1d1101754188c3f5ada3cdee4c
BLAKE2b-256 b03485e072c32a6bf38dfb683eeae86af615c97fe3db4b570c939ec3155639d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page