All Projects → softcoder24 → insta_share

softcoder24 / insta_share

Licence: other
Share a post into your Instagram account using the requests library.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to insta share

Taisite Platform
最强接口测试平台
Stars: ✭ 203 (+625%)
Mutual labels:  requests
Curequests
Curio + Requests: Async HTTP for Humans
Stars: ✭ 243 (+767.86%)
Mutual labels:  requests
Pikax
一个基于requests的P站下载器/ A pixiv downloader based on requests
Stars: ✭ 49 (+75%)
Mutual labels:  requests
Human curl
Simple Human wrapper for cURL library
Stars: ✭ 206 (+635.71%)
Mutual labels:  requests
Swaglyrics For Spotify
📃 Get lyrics of currently playing Spotify song so you don't sing along with the wrong ones and embarrass yourself later. Very fast.
Stars: ✭ 235 (+739.29%)
Mutual labels:  requests
requests auth
Authentication classes to be used with requests
Stars: ✭ 28 (+0%)
Mutual labels:  requests
Trump Lies
Tutorial: Web scraping in Python with Beautiful Soup
Stars: ✭ 201 (+617.86%)
Mutual labels:  requests
updater
Update mechanism of f1jobs.co
Stars: ✭ 20 (-28.57%)
Mutual labels:  requests
Pulse
✨ Pulse is a global state and logic framework for reactive Typescript & Javascript applications. Supporting frameworks like VueJS, React and React Native.
Stars: ✭ 243 (+767.86%)
Mutual labels:  requests
http-range
A PHP library for parsing and handling HTTP range requests.
Stars: ✭ 30 (+7.14%)
Mutual labels:  requests
Httprunner
One-stop solution for HTTP(S) testing, written in Python.
Stars: ✭ 2,628 (+9285.71%)
Mutual labels:  requests
Autoline
建议你使用更新的AutoLink平台
Stars: ✭ 227 (+710.71%)
Mutual labels:  requests
iHealth crawler
iHealth 项目的内容爬虫(一个基于 python 和 MongoDB 的医疗咨询爬虫)
Stars: ✭ 24 (-14.29%)
Mutual labels:  requests
Transistor
Transistor, a Python web scraping framework for intelligent use cases.
Stars: ✭ 205 (+632.14%)
Mutual labels:  requests
pawn-requests
pawn-requests provides an API for interacting with HTTP(S) JSON APIs.
Stars: ✭ 56 (+100%)
Mutual labels:  requests
Ngx Resource
Resource (REST) Client for Angular 2
Stars: ✭ 201 (+617.86%)
Mutual labels:  requests
HealthApp
A desktop application to fetch Wikipedia,Google,Disease results and save them as text file,in database.Have a Section to search details about doctors in location
Stars: ✭ 23 (-17.86%)
Mutual labels:  requests
curlall
Simple curl-like CLI tool to automatically page through APIs
Stars: ✭ 25 (-10.71%)
Mutual labels:  requests
amazon wishlist pricewatch
Periodically check your public Amazon wishlist for price reductions.
Stars: ✭ 22 (-21.43%)
Mutual labels:  requests
discord-group-spammer
You need to run all_together.py and follow the instructions on the readme below. This Tool allows you to use various discord exploits for educational use.
Stars: ✭ 45 (+60.71%)
Mutual labels:  requests

Insta_Share

This project provides you with functions to be able to do the followings:

  • Login into your instagram account and get the csrf_token and session_id by using login_instagram function
  • Use the acquired credentials from output of the mentioned function to share a post into your Instagram account
  • Use the acquired credentials to upload a story

Installation

pip install requests
pip install jsonlib
pip install insta-share==0.0.1

Usage

from insta_share import Instagram

insta = Instagram()

session = {
    "csrf_token": "CSRF_TOKEN",
    "session_id": "SESSION_ID"
}

insta.load(session)

with open('toronto.jpg', 'rb') as image:
    share_post = insta.post(image, caption="Lovely City")
    print(share_post)
    
    story = insta.story(image)
    print(story)
    

Sample response for share_post:

{'message': 'photo was shared successfully!', 
 'data': {'media': {'taken_at': 1605625037, 'pk': '2444482423770884550', 
    'id': '2444482423770884520_42370920440','device_timestamp': 1605625026, 
    'media_type': 1,
     ...
 'status': 'ok'}}

Sample response for story:

{'message': 'story was shared successfully!', 
    'data': {'media': {'taken_at': 1605625634, 'pk': '2444487375272740605', 
    'id': '2444487375272740603_42370920439', 'device_timestamp': 1605625630,
    'media_type': 1, 
       ...
 'status': 'ok'}}

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].