Skip to main content

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

Project description

ParseHub

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

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

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.0.tar.gz (54.2 kB view details)

Uploaded Source

Built Distribution

parsehub-1.0.0-py3-none-any.whl (78.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for parsehub-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9c963c0777c963b3b9018d758f7d5c684b9fa6c33e76b1fcc4f08d5fd7ac94a0
MD5 3f345dc0288873795e5e695d91f6862f
BLAKE2b-256 bdf24451ddf6d2dcd6327a46d637349b1cccd171e89985ce2cef0ec24a1a6312

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for parsehub-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8d2dece4f99df670a741f5b6c8264ddcbd9c4d7c14f18642c4f4264db5d89a5
MD5 4b10300ed7bbc17c9c6bc2954f51f99e
BLAKE2b-256 24b38db54bb99825866d8a37dce11fe5865a57ead27af0d4abe98cceb1db33d3

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