dreammis / social-auto-upload Goto Github PK
View Code? Open in Web Editor NEW自动化上传视频到社交媒体:抖音、小红书、视频号、tiktok、youtube、bilibili
自动化上传视频到社交媒体:抖音、小红书、视频号、tiktok、youtube、bilibili
能支持上传封面吗?
加群二维码过期了,再发一个
rt, 大佬看看能不能实现微博的自动发布?
希望支持上传文字 图片 视频到Telegram频道
抖音定时发布好像不太行了,清空输入框之后会自动填,导致后面填的值无效
有时播放量是0
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
Please add for facebook fanspage
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
大佬,目前命令行启动还暂不支持小红书吗?平台参数设置成“xhs”的时候,报错显示这样:
usage: cli_main.py [-h] platform account_name action ...
cli_main.py: error: argument platform: invalid choice: 'xhs' (choose from 'douyin', 'tencent', 'tiktok')
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)')]
如果检测到是否会影响到平台账号的流量
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.