Giter Site home page Giter Site logo

social-auto-upload's People

Contributors

dreammis avatar

Stargazers

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

Watchers

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

social-auto-upload's Issues

支持Telegram

希望支持上传文字 图片 视频到Telegram频道

xhs 发布图文提示“技术升级中”,请教这是什么原因导致的呢?

Request URL: https://edith.xiaohongshu.com/web_api/sns/v2/note

xhs-bot:dev: Response Data: {"result":-9999,"success":false,"msg":"抱歉,技术升级中,暂时无法发布笔记","can_show_err_msg_to_user":false,"need_retry":false}

有成功发送一篇,之后再次调用就一直提示“技术升级中”
在 web 版验证手工发布是正常的,所以这是因为账号被封控了吗?

视频号报错了

PS T:\social.auto.upload> python get_tencent_cookie.py
2024-06-29 11:21:14 | SUCCESS: [+] cookie 有效
PS T:\social.auto.upload> python upload_video_to_tencent.py
2024-06-29 11:21:32 | SUCCESS: [+] cookie 有效
Traceback (most recent call last):
File "T:\social.auto.upload\upload_video_to_tencent.py", line 22, in
title, tags = get_title_and_hashtags(str(file))
File "T:\social.auto.upload\utils\files_times.py", line 36, in get_title_and_hashtags
hashtags = splite_str[1].replace("#", "").split(" ")
IndexError: list index out of range

视频号上传视频失败

视频号上传视频失败,没有自动打开浏览器,报错信息如下:

python upload_video_to_tencent.py
[+] cookie 有效
视频文件名:/social-auto-upload/videos/demo.mp4
标题:这位勇敢的男子为了心爱之人每天坚守 🥺❤️‍🩹
Hashtag:['坚持不懈', '爱情执着', '奋斗使者', '短视频']
Traceback (most recent call last):
  File "/social-auto-upload/upload_video_to_tencent.py", line 28, in <module>
    asyncio.run(app.main(), debug=False)
  File "/miniconda3/envs/auto-upload/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/auto-upload/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/auto-upload/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/playground/social-auto-upload/tencent_uploader/main.py", line 264, in main
    await self.upload(playwright)
  File "/playground/social-auto-upload/tencent_uploader/main.py", line 134, in upload
    browser = await playwright.chromium.launch(headless=False, executable_path=self.local_executable_path)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/auto-upload/lib/python3.11/site-packages/playwright/async_api/_generated.py", line 13882, in launch
    await self._impl_obj.launch(
  File "/miniconda3/envs/auto-upload/lib/python3.11/site-packages/playwright/_impl/_browser_type.py", line 94, in launch
    Browser, from_channel(await self._channel.send("launch", params))
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/auto-upload/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 59, in send
    return await self._connection.wrap_api_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/auto-upload/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 513, in wrap_api_call
    raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: BrowserType.launch: Failed to launch: Error: spawn . EACCES

Call log:
<launching> . --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/l6/btvdrkq11x1346h4ql9354th0000gn/T/playwright_chromiumdev_profile-2BdW9G --remote-debugging-pipe --no-startup-window
  - [pid=N/A] starting temporary directories cleanup
  - [pid=N/A] finished temporary directories cleanup

I get an error when Schedule posts the video, it clicked on the Schedule button, but it freezes still and gives an error

Here's the error message I received

  File "c:\Users\KalvinThien\Downloads\social-auto-upload-main\social-auto-upload-main\examples\upload_video_to_tiktok.py", line 57, in <module>
    asyncio.run(app.main(), debug=False)
  File "C:\Users\KalvinThien\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\KalvinThien\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\KalvinThien\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "c:\Users\KalvinThien\Downloads\social-auto-upload-main\social-auto-upload-main\examples\main.py", line 234, in main
    await self.upload(playwright)
  File "c:\Users\KalvinThien\Downloads\social-auto-upload-main\social-auto-upload-main\examples\main.py", line 158, in upload
    await self.set_schedule_time(page, self.publish_date)
  File "c:\Users\KalvinThien\Downloads\social-auto-upload-main\social-auto-upload-main\examples\main.py", line 81, in set_schedule_time
    await scheduled_picker.locator('div.date-picker-input').click()
  File "C:\Users\KalvinThien\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\async_api\_generated.py", line 15706, in click
    await self._impl_obj.click(
  File "C:\Users\KalvinThien\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_locator.py", line 159, in click
    return await self._frame.click(self._selector, strict=True, **params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\KalvinThien\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_frame.py", line 484, in click
    await self._channel.send("click", locals_to_params(locals()))
  File "C:\Users\KalvinThien\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_connection.py", line 62, in send
    return await self._connection.wrap_api_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\KalvinThien\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_connection.py", line 492, in wrap_api_call
    return await cb()
           ^^^^^^^^^^
  File "C:\Users\KalvinThien\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_connection.py", line 100, in inner_send
    result = next(iter(done)).result()
             ^^^^^^^^^^^^^^^^^^^^^^^^^
playwright._impl._errors.TimeoutError: Timeout 30000ms exceeded.```

Thanks 

cli_main.py 平台参数设置为 ”xhs” 时报错

大佬,目前命令行启动还暂不支持小红书吗?平台参数设置成“xhs”的时候,报错显示这样:

usage: cli_main.py [-h] platform account_name action ...
cli_main.py: error: argument platform: invalid choice: 'xhs' (choose from 'douyin', 'tencent', 'tiktok')

b站上传失败

z2p@MacBook-Pro social-auto-upload$ python3 upload_video_to_bilibili.py
视频文件名:/Users/z2p/Downloads/social-auto-upload/videos/测试1.mp4
标题:测试 🥺❤️‍🩹🍴
Hashtag:['123', 'aaa']
使用cookies上传
probe_version=20221109&upcdn=tx&zone=cs 0.24969190599222202
probe_version=20221109&upcdn=bda2&zone=cs 0.25500661200203467
probe_version=20221109&upcdn=bldsa&zone=cs 0.06020553699636366
retry chunk0 >> 1. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]
retry chunk0 >> 2. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]
retry chunk0 >> 3. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]
retry chunk0 >> 4. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]
retry chunk0 >> 5. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]
retry chunk0 >> 6. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]
retry chunk0 >> 7. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]
retry chunk0 >> 8. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]
retry chunk0 >> 9. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]
retry chunk0 >> 10. Cannot connect to host upos-cs-upcdnbldsa.bilivideo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')]

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.