Code Monkey home page Code Monkey logo

social-auto-upload's Issues

视频号上传视频失败

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

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

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 版验证手工发布是正常的,所以这是因为账号被封控了吗?

支持Telegram

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

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 

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.