{"id":17176116,"url":"https://github.com/upbit/tweibo-pysdk","last_synced_at":"2025-04-13T17:06:44.307Z","repository":{"id":9105325,"uuid":"10885925","full_name":"upbit/tweibo-pysdk","owner":"upbit","description":"腾讯微博Python SDK (Tencent Weibo SDK for Python)","archived":false,"fork":false,"pushed_at":"2014-08-12T11:03:51.000Z","size":1161,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-21T23:43:23.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/upbit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-23T14:32:15.000Z","updated_at":"2019-06-02T17:23:17.000Z","dependencies_parsed_at":"2022-09-06T04:20:15.788Z","dependency_job_id":null,"html_url":"https://github.com/upbit/tweibo-pysdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upbit%2Ftweibo-pysdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upbit%2Ftweibo-pysdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upbit%2Ftweibo-pysdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upbit%2Ftweibo-pysdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/upbit","download_url":"https://codeload.github.com/upbit/tweibo-pysdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240361676,"owners_count":19789526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:59:08.655Z","updated_at":"2025-02-23T18:34:47.567Z","avatar_url":"https://github.com/upbit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 腾讯微博SDK for Python\n\n参考 @michaelliao 的 [sinaweibopy](https://github.com/michaelliao/sinaweibopy) 写了个腾讯的API。采用相同的动态 [_http_call()](https://github.com/upbit/tweibo-pysdk/blob/master/tweibo/tweibo.py#L102) 调用方式，具有代码量少易于维护等特点。\n\nAPI的详细使用方法见[demo.py](https://github.com/upbit/tweibo-pysdk/blob/master/demo.py)，已测试版本：Python 2.7\n\n## FAQ\n1. [OAuth2Handler(): OAuth2鉴权说明](https://github.com/upbit/tweibo-pysdk/wiki/OAuth2Handler)\n2. [demo.py详解](https://github.com/upbit/tweibo-pysdk/wiki/demo.py%E8%AF%A6%E8%A7%A3)\n\n***\ndemo.py演示: 上传example.png并发表微博\n\n```python\n    # UPLOAD /t/upload_pic\n    pic1 = api.upload.t__upload_pic(format=\"json\", pic_type=2, pic=open(IMG_EXAMPLE, \"rb\"))\n    print \"\u003e\u003e IMG: %s\" % (pic1.data.imgurl)\n\n    # POST /t/add_pic_url\n    content_str2 = \"[from PySDK] add pic demo: %s, time %s\" % (IMG_EXAMPLE, time.time())\n    pic_urls = \"%s\" % (pic1.data.imgurl)\n    tweet_pic1 = api.post.t__add_pic_url(format=\"json\", content=content_str2, pic_url=pic_urls, clientip=\"10.0.0.1\")\n    print \"\u003e\u003e time=%s, http://t.qq.com/p/t/%s\" % (tweet_pic1.data.time, tweet_pic1.data.id)\n```\n\n![demo.py运行效果](https://raw.github.com/wiki/upbit/tweibo-pysdk/images/demo.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupbit%2Ftweibo-pysdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupbit%2Ftweibo-pysdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupbit%2Ftweibo-pysdk/lists"}