Skip to main content
#simple_social_suture

This library provides a unified JSON structure for Twitter, Instagram and Vimeo


##Usage:


from simple_social_suture.api import get_my_messages

settings = {
'TWITTER_APP_KEY' : 'XXXXXXXXXX',
'TWITTER_APP_KEY_SECRET' : 'XXXXXXXXXX',
'TWITTER_ACCESS_TOKEN' : 'XXXXXXXXXX',
'TWITTER_ACCESS_TOKEN_SECRET' : 'XXXXXXXXXX',
'INSTAGRAM_USER_NAME' : 'XXXXXXXXXX',
'INSTAGRAM_CLIENT_ID' : 'XXXXXXXXXX',
'INSTAGRAM_SECRET_CLIENT_ID' : 'XXXXXXXXXX',
'INSTAGRAM_ACCESS_TOKEN' : 'XXXXXXXXXX',
'VIMEO_USER_NAME' : 'XXXXXXXXXX',
'VIMEO_CLIENT_ID' : 'XXXXXXXXXX',
'VIMEO_SECRET_CLIENT_ID' : 'XXXXXXXXXX',
'MAX_TWITTER_COUNT' : 100,
'MAX_QUERY_COUNT' : 200
}

messages = get_my_messages(settings, "@twitter_username", "@instagram_username", "vimeo_username")

print messages

#Example schema output
[
{
'message_date': datetime.datetime(2017, 5, 4, 14, 11, 37),
'message_timesince': '3 days ago',
'hashes': [],
'id': XXXXXXXXXX,
'user_profile_url': u'https: //twitter.com/XXXXXXXXXX',
'message_html': u'XXXXXXXXXX',
'raw_data': {... this is the json returned from Twitter API ...},
'user_screen_name': u'XXXXXXXXXX',
'user_avatar_url': u'https: //pbs.twimg.com/profile_images/XXXXXXXXXX/XXXXXXXXXX.jpg',
'message_url': u'https: //twitter.com/XXXXXXXXXX/status/XXXXXXXXXX',
'user_name': u'XXXXXXXXXX',
'message_id': 'tweet_XXXXXXXXXX'
},
{
'message_date': datetime.datetime(2017, 5, 1, 10, 0, 19),
'message_timesince': '6 days ago',
'hashes': [
u'XXXXXXXXXX',
u'XXXXXXXXXX',
u'XXXXXXXXXX'
],
'id': XXXXXXXXXX,
'user_profile_url': u'https: //instagram.com/XXXXXXXXXX',
'message_html': u"XXXXXXXXXX",
'raw_data': {... this is the json returned from Instagram API ...},
'user_screen_name': u'XXXXXXXXXX',
'user_avatar_url': u'https: //scontent.cdninstagram.com/XXXXXXXXXX/XXXXXXXXXX.jpg',
'message_url': u'https: //www.instagram.com/p/XXXXXXXXXX/',
'user_name': u'XXXXXXXXXX',
'message_id': u'instagram_XXXXXXXXXX'
},
{
'message_date': datetime.datetime(2016,8, 15, 18,30,55),
'message_timesince': '8 months ago',
'hashes': [],
'id': 'XXXXXXXXXX',
'user_profile_url': u'https: //vimeo.com/XXXXXXXXXX',
'message_html': u'<iframesrc="https://player.vimeo.com/video/XXXXXXXXXX?badge=0&autopause=0&player_id=0" width="640" height="360" frameborder="0" title="XXXXXXXXXX" ></iframe>',
'raw_data': {... this is the json returned from Vimeo API ...},
'user_screen_name': 'XXXXXXXXXX',
'user_avatar_url': u'https: //i.vimeocdn.com/portrait/XXXXXXXXXX?r=pad',
'message_url': u'https: //vimeo.com/XXXXXXXXXX',
'user_name': u'XXXXXXXXXX',
'message_id': 'vimeo_XXXXXXXXXX'
}
]

Metadata

Release files for simple-social-suture 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-social-suture 0.6
File Size Uploaded Provenance Actions
simple-social-suture-0.6.tar.gz 7.5 kB Without provenance Details for simple-social-suture-0.6.tar.gz

Release files / simple-social-suture-0.6.tar.gz

Download URL simple-social-suture-0.6.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e0fe6a8f8ad235cee0dee4ad68ef35f2846d4305301205fcded46518e7b0904e
BLAKE2b-256 checksum
How to use checksums
13e4549637798cec4ae09d158fc70dbd2f02eb379bd0eb8c73d29f304faff2a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for simple-social-suture 0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page