python库和cli用于在instagram上上传照片。电话号码!
instapy-cli的Python项目详细描述
instapy客户端:zap:
发布photos和videos(新!)在Instagram上,没有电话!你可以在Instagram上上传posts甚至stories。 你可以上传一个本地文件或使用一个链接,它为你做一切自动。
简介
有很多用Python编写的库专门用于处理instagramapi(公共的或私有的),但是大多数库都有很多未解决的问题,PRs也没有长期维护
Lots of developers want a simple and effective way to upload photos or videos (NEW!) directly to Instagram programmatically. Some may want to publish a simple post, others want to publish a story.
所有这些都可以通过instapy-cli
来实现。:tada:
我决定启动这个回购,并用:heart:
安装
pip install instapy-cli
使用量
用作库
您可以检查文件夹examples
,查看以编程方式使用instapy cli的工作代码。
如果您想通过shell使用instapy cli,请继续阅读。
用作cli
使用
instapy -u USR -p PSW -f FILE/LINK -t 'TEXT CAPTION'
cli选项
option | required | default | description |
---|---|---|---|
-u | yes | - | username |
-p | yes | - | password |
-f | yes | - | file/media to upload |
-t | optional | - | text caption for post |
-s | optional | - | upload a story |
帮助
instapy --help
提示
饼干
通过使用instapy cli为您生成的cookie,您可以避免重新登录。
默认情况下,instapy cli使用在当前工作目录中创建的名为“USERNAME_ig.json”的cookie。
如果不想将cookie存储在文件系统中,则需要传递参数cookie
:
withclient(username,password,cookie)ascli:# do stuffs with cli
这个功能没有经过很好的测试,请小心使用。
图像格式
instapy cli支持JPG/JPEG/PNG格式的图像
宽高比
图像的纵横比必须为1:1,即平方大小。 您可以使用1:1以外的其他纵横比,但请小心,不要超出Instagram的限制。 否则,如果您不尊重纵横比,媒体将被张贴,但拉伸或裁剪
为什么选择instapy cli?
第一,长篇短文:Inthyy CLI是PySistRAM的一个分支,其目的是扩展其功能并修复所有未解决的bug。
将此项目移到一个更好的位置:右箭头钩:
任何想合作的人,我保证会成为一名优秀的回购经理,并尽快合并你的所有请求。 我有一些改进的想法,但我需要合作加入并支持!:灯泡:
但是,等等Instagram不允许上传除应用程序以外的内容(当然:trollface:)简短回答:
Yes, you are right.
长答案:
Every connection from a mobile phone could be intercepted. Someone has done the hard work to sniff the packets sent from the phone to Instagram and "spread the news". You can do a quick research.
规范要求
此软件包将使用instapy cli自动安装
package Source Link requests https://github.com/requests/requests filetype https://github.com/h2non/filetype.py instagram-private-api https://github.com/ping/instagram_private_api instagram-private-api-extensions https://github.com/ping/instagram_private_api_extensions
贡献
要帮助instapy-cli
开发人员构建和维护此项目,请转到docs/CONTRIBUTING.md
instructions soon
(写下来合作吧:眨眼:)
许可证
麻省理工学院
支持项目和作者
给我一杯咖啡或啤酒,支持instapy cli:tada:
推荐PyPI第三方库
instapy-cli
开发人员构建和维护此项目,请转到docs/CONTRIBUTING.mdinstructions soon