• No results found

instatools Documentation

N/A
N/A
Protected

Academic year: 2022

Share "instatools Documentation"

Copied!
38
0
0

Loading.... (view fulltext now)

Full text

(1)

instatools Documentation

Release 0.1.8

Djordje Pepic

Oct 15, 2018

(2)
(3)

Contents:

1 instatools 1

1.1 Features. . . 1

2 Installation 3 2.1 Stable release. . . 3

2.2 From sources . . . 3

3 Usage 5 4 instatools 7 4.1 instatools package . . . 7

5 Contributing 19 5.1 Types of Contributions . . . 19

5.2 Get Started!. . . 20

5.3 Pull Request Guidelines . . . 21

5.4 Tips . . . 21

5.5 Deploying . . . 21

6 Credits 23 6.1 Development Lead . . . 23

6.2 Contributors . . . 23

7 History 25 7.1 0.1.8 (2018-10-09) . . . 25

7.2 0.1.7 (2018-10-09) . . . 25

7.3 0.1.6 (2018-10-02) . . . 25

7.4 0.1.5 (2018-09-29) . . . 25

7.5 0.1.4 (2018-09-29) . . . 25

7.6 0.1.3 (2018-09-25) . . . 25

7.7 0.1.2 (2018-08-27) . . . 26

7.8 0.1.1 (2018-08-17) . . . 26

7.9 0.1.0 (2018-05-25) . . . 26

8 Indices and tables 27

Python Module Index 29

(4)
(5)

CHAPTER 1

instatools

Unofficial Instagram API for python 3.5+

• Free software:GNU General Public License v3

• Documentation:https://instatools.readthedocs.io

1.1 Features

• Log into Instagram with a username and password

• Like, follow, comment, share and direct message easily

(6)

2 Chapter 1. instatools

(7)

CHAPTER 2

Installation

2.1 Stable release

To install instatools, run this command in your terminal:

$ pip install instatools

This is the preferred method to install instatools, as it will always install the most recent stable release.

If you don’t havepipinstalled, thisPython installation guidecan guide you through the process.

2.2 From sources

The sources for instatools can be downloaded from theGithub repo.

You can either clone the public repository:

$ git clone git://github.com/sentrip/instatools

Or download thetarball:

$ curl -OL https://github.com/sentrip/instatools/tarball/master

Once you have a copy of the source, you can install it with:

$ python setup.py install

(8)

4 Chapter 2. Installation

(9)

CHAPTER 3

Usage

To use instatools in a project:

import instatools

(10)

6 Chapter 3. Usage

(11)

CHAPTER 4

instatools

4.1 instatools package

4.1.1 Subpackages

instatools.instagram package Submodules

instatools.instagram.api module instatools.instagram.feeds module

class instatools.instagram.feeds.FeedReader(api, feed_type, *args, reset_after=86400) Bases: object

reset()

class instatools.instagram.feeds.Feeds(api=None) Bases: object

liked

location(search) popular

saved tag(search) timeline user(search) user_tags(search)

(12)

instatools.instagram.hub module

class instatools.instagram.hub.Hub(api=None) Bases: object

activity explore

following_activity inbox

megaphone share_inbox

instatools.instagram.instagram module

Public api for Instagram

class instatools.instagram.instagram.Instagram(username=None, password=None, ses- sion=None)

Bases: object approve(user_id) block(user_id) comment(post_id, text)

direct_message(recipients, msg)

direct_share(post_id, recipients, msg=None) edit_caption(post_id, new_caption)

follow(user_id)

get_comments(post_id)

get_followers(user_id=None) get_following(user_id=None) get_friendship(user_id) get_geo_media(user_id) get_likers(post_id) get_post(post_id) get_story(user_id) get_user(user_id) get_username(username) ignore(user_id)

like(post_id) login()

Login to Instagram with account credentials provided in __init__

8 Chapter 4. instatools

(13)

instatools Documentation, Release 0.1.8

logout()

Logout of currently logged-in account password

Password of Instagram account post(*args)

remove_comment(post_id, comment_id) remove_post(post_id)

remove_tag(post_id) save(post_id)

switch_user(username=None, password=None, session=None) Switches current account username and password - requires login unblock(user_id)

unfollow(user_id) unlike(post_id) unsave(post_id) username

Username of Instagram account username_id

User-id of Instagram account

class instatools.instagram.instagram.Users(api=None, list_type=None) Bases: object

Class representing new and removed users current

update()

instatools.instagram.profile module

class instatools.instagram.profile.Profile(api=None) Bases: object

biography

change_password(new_password) change_profile_picture()

edit(phone, email, *, full_name=None, username=None, url=None, biography=None, gender=None) external_url

follow_requests full_name

remove_profile_picture() set_private()

set_public()

(14)

threads(thread, cursor=None)

instatools.instagram.search module

class instatools.instagram.search.Search(api=None) Bases: object

facebook(users) locations(location) tags(tag)

users(username)

instatools.instagram.upload module Module contents

class instatools.instagram.Instagram(username=None, password=None, session=None) Bases: object

approve(user_id) block(user_id) comment(post_id, text)

direct_message(recipients, msg)

direct_share(post_id, recipients, msg=None) edit_caption(post_id, new_caption)

follow(user_id)

get_comments(post_id)

get_followers(user_id=None) get_following(user_id=None) get_friendship(user_id) get_geo_media(user_id) get_likers(post_id) get_post(post_id) get_story(user_id) get_user(user_id) get_username(username) ignore(user_id)

like(post_id) login()

Login to Instagram with account credentials provided in __init__

10 Chapter 4. instatools

(15)

instatools Documentation, Release 0.1.8

logout()

Logout of currently logged-in account password

Password of Instagram account post(*args)

remove_comment(post_id, comment_id) remove_post(post_id)

remove_tag(post_id) save(post_id)

switch_user(username=None, password=None, session=None) Switches current account username and password - requires login unblock(user_id)

unfollow(user_id) unlike(post_id) unsave(post_id) username

Username of Instagram account username_id

User-id of Instagram account

4.1.2 Submodules

4.1.3 instatools.api module

Wrappers for interactions with Instagram API class instatools.api.ApiMethod(api)

Bases: object

action(path, *args, max_attempts=10, return_key=”, extra=None, method=’POST’, headers=None, params=None, data=None)

Parameters

• path –

• args –

• max_attempts –

• return_key –

• extra –

• method –

• headers –

• params –

• data – Returns

(16)

feed(feed_type, *args, seen=None, raw=False) Parameters

• feed_type –

• args –

• seen –

• raw – Returns

form(path, bodies, boundary, params=None, return_key=”) Parameters

• path –

• bodies –

• boundary –

• params –

• return_key – Returns

instatools.api.requires_login(func)

4.1.4 instatools.cache module

Response caching for testing integration with instatools

class instatools.cache.DataBaseCache(db_path, default_factories=None) Bases: object

clear() delete(key) get(key) set(key, value)

instatools.cache.clear(data_dir) instatools.cache.read(data_dir) instatools.cache.record(data_dir)

4.1.5 instatools.models module

class instatools.models.Comment(api, json) Bases:instatools.models.Model

classmethod parse(api, json, extra=None) remove()

reply(msg)

class instatools.models.Location(api, json) Bases:instatools.models.Model

12 Chapter 4. instatools

(17)

instatools Documentation, Release 0.1.8

classmethod parse(api, json, extra=None) class instatools.models.Model(api, json)

Bases: object

classmethod parse(api, json, extra=None)

classmethod parse_list(api, json_list, extra=None) class instatools.models.ModelFactory

Bases: object comment

alias ofComment default

alias ofModel friendship_status

alias ofRelationship item

alias ofPost location

alias ofLocation post

alias ofPost ranked_item

alias ofPost relationship

alias ofRelationship user

alias ofUser

class instatools.models.Post(api, json) Bases:instatools.models.Model comments

download() likers

classmethod parse(api, json, extra=None) save()

share(user_ids, msg=None) unsave()

upload()

class instatools.models.Relationship(api, json) Bases:instatools.models.Model

classmethod parse(api, json, extra=None) class instatools.models.User(api, json)

Bases:instatools.models.Model approve()

(18)

block()

direct_message(msg)

direct_share(post_id, msg=None) feed

follow() followers following ignore()

classmethod parse(api, json, extra=None) unblock()

unfollow()

4.1.6 instatools.session module

Instagram Session class provides bare minimum to make authenticated, rate_limited requests to the Instagram API class instatools.session.Session(username=None, password=None, session=None)

Bases: object

Class representing the request-making Session of a single Instagram user static build_form_body(bodies, boundary)

Parameters

• bodies –

• boundary – Returns

static configure_data(width, height, upload_id, caption, video=False) static configure_data_photo(width, height)

static configure_data_video(duration) device_id = None

exponential_sleep_increase = 2

form_data_for_message(recipients, text=None) Parameters

• recipients –

• text – Returns

static form_headers(boundary) Parameters boundary – Returns

login()

Login to Instagram with account credentials provided in __init__

14 Chapter 4. instatools

(19)

instatools Documentation, Release 0.1.8

login_data(cookies)

Using cookies provided, gives data to send to Instagram for login approval :param cookies: cookies from login challenge :return: dict: data to use for login

logout()

Logout of currently logged-in account password = None

paths = {'approve': 'friendships/approve/{}/', 'autocomplete_users': 'friendships/autocomplete_user_list', 'block': 'friendships/block/{}/', 'change_password': 'accounts/change_password/', 'change_profile_picture': 'accounts/change_profile_picture/', 'comment': 'media/{}/comment/', 'comments': 'media/{}/comments/', 'configure': 'media/configure', 'create_post': '', 'direct_link': 'direct_v2/threads/broadcast/link/', 'direct_message': 'direct_v2/threads/broadcast/text/', 'direct_share': 'direct_v2/threads/broadcast/media_share/', 'direct_threads': 'direct_v2/threads/{}/', 'edit_profile': 'accounts/edit_profile/', 'explore': 'discover/explore', 'expose': 'qe/expose', 'facebook_search': 'fbsearch/topsearch', 'follow': 'friendships/create/{}/', 'followers': 'friendships/{}/followers', 'following': 'friendships/{}/following', 'friendship': 'friendships/show/{}/', 'geo_media': 'maps/user/{}', 'ignore': 'friendships/ignore/{}/', 'inbox': 'direct_v2/inbox', 'like': 'media/{}/like/', 'liked': 'feed/liked', 'likers': 'media/{}/likers/', 'location_feed': 'feed/location/{}/', 'location_search': 'fbsearch/places', 'login': 'accounts/login/', 'login_challenge': 'si/fetch_headers/', 'logout': 'accounts/logout/', 'megaphone': 'megaphone/log', 'pending': 'friendships/pending', 'popular': 'feed/popular', 'post': 'media/{}/info/', 'profile': 'accounts/current_user/', 'recent_activity': 'news/inbox', 'recent_following_activity': 'news', 'remove_comment': 'media/{}/comment/{}/delete/', 'remove_post': 'media/{}/delete/', 'remove_profile_picture': 'accounts/remove_profile_picture/', 'remove_tag': 'media/{}/remove/', 'save': 'media/{}/save/', 'saved': 'feed/saved', 'set_phone_name': 'accounts/set_phone_and_name/', 'set_private': 'accounts/set_private/', 'set_public': 'accounts/set_public/', 'share_inbox': 'direct_share/inbox', 'story': 'feed/user/{}/reel_media', 'tag_feed': 'feed/tag/{}/', 'tag_search': 'tags/search', 'timeline': 'feed/timeline', 'unblock': 'friendships/unblock/{}/', 'unfollow': 'friendships/destroy/{}/', 'unlike': 'media/{}/unlike/', 'unsave': 'media/{}/unsave/', 'upload_photo': 'upload/photo', 'upload_video': 'upload/video', 'user': 'users/{}/info/', 'user_feed': 'feed/user/{}/', 'user_search': 'users/search', 'user_tags': 'usertags/{}/feed', 'username': 'users/{}/usernameinfo'}

rank_token

relog_after_failed = 5

request(method, url, *, params=None, data=None, return_json=True, **kwargs) Parameters

• method –

• url –

• params –

• data –

• return_json –

• kwargs – Returns

request_safely(*args, max_attempts=0, **kwargs)

Make a safe request that returns correct results or dies trying! Keeps requesting with exponential back-off until requests_to_break is reached, at which point each consecutive request is circuit-broken and waits sleep_on_breakseconds until a successful request is made, or until relog_after_failed circuit-broken re- quests are made, at which point the client re-logs and begins the whole cycle again. :param args: :param max_attempts: :param kwargs: :return:

requests_to_break = 10 session_data

set_proxy(proxy)

Set proxy for all requests made with this session :param proxy: str: proxy - format:

“user:password@ip:port” OR “ip:port”

setup(username, password, session)

Setup session variables by username/password or by previous session :param username: :param password:

:param session: :return:

sleep_on_break = 600 sleep_on_page = 0.5

switch_user(username=None, password=None, session=None) Switches current account username and password - requires login token = None

upload_data_photo(upload_id, photo_file_object) static upload_headers(content_type, video=False)

Parameters

(20)

• content_type –

• video – Returns url(path, *args)

Return url for api path formatted with args username = None

username_id = None uuid = None

wait_limit(url)

Parameters url – Returns

instatools.session.generate_device_id(seed) Generate new device id

instatools.session.generate_signature(data)

Generates signed signature of POST data using SIG_KEY (signing key) :param data: dict: POST data :return:

str: data to append to request url

instatools.session.generate_upload_id() Generate new upload id :return:

instatools.session.generate_uuid(typ) Generate new uuid :param typ: :return:

4.1.7 instatools.utils module 4.1.8 Module contents

Top-level package for instatools.

class instatools.Instagram(username=None, password=None, session=None) Bases: object

approve(user_id) block(user_id) comment(post_id, text)

direct_message(recipients, msg)

direct_share(post_id, recipients, msg=None) edit_caption(post_id, new_caption)

follow(user_id)

get_comments(post_id)

get_followers(user_id=None) get_following(user_id=None) get_friendship(user_id) get_geo_media(user_id)

16 Chapter 4. instatools

(21)

instatools Documentation, Release 0.1.8

get_likers(post_id) get_post(post_id) get_story(user_id) get_user(user_id) get_username(username) ignore(user_id)

like(post_id) login()

Login to Instagram with account credentials provided in __init__

logout()

Logout of currently logged-in account password

Password of Instagram account post(*args)

remove_comment(post_id, comment_id) remove_post(post_id)

remove_tag(post_id) save(post_id)

switch_user(username=None, password=None, session=None) Switches current account username and password - requires login unblock(user_id)

unfollow(user_id) unlike(post_id) unsave(post_id) username

Username of Instagram account username_id

User-id of Instagram account

(22)

18 Chapter 4. instatools

(23)

CHAPTER 5

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

You can contribute in many ways:

5.1 Types of Contributions

5.1.1 Report Bugs

Report bugs athttps://github.com/sentrip/instatools/issues.

If you are reporting a bug, please include:

• Your operating system name and version.

• Any details about your local setup that might be helpful in troubleshooting.

• Detailed steps to reproduce the bug.

5.1.2 Fix Bugs

Look through the GitHub issues for bugs. Anything tagged with “bug” and “help wanted” is open to whoever wants to implement it.

5.1.3 Implement Features

Look through the GitHub issues for features. Anything tagged with “enhancement” and “help wanted” is open to whoever wants to implement it.

(24)

5.1.4 Write Documentation

instatools could always use more documentation, whether as part of the official instatools docs, in docstrings, or even on the web in blog posts, articles, and such.

5.1.5 Submit Feedback

The best way to send feedback is to file an issue athttps://github.com/sentrip/instatools/issues.

If you are proposing a feature:

• Explain in detail how it would work.

• Keep the scope as narrow as possible, to make it easier to implement.

• Remember that this is a volunteer-driven project, and that contributions are welcome :)

5.2 Get Started!

Ready to contribute? Here’s how to set up instatools for local development.

1. Fork the instatools repo on GitHub.

2. Clone your fork locally:

$ git clone [email protected]:your_name_here/instatools.git

3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development:

$ mkvirtualenv instatools

$ cd instatools/

$ python setup.py develop

4. Create a branch for local development:

$ git checkout -b name-of-your-bugfix-or-feature

Now you can make your changes locally.

5. When you’re done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox:

$ flake8 instatools tests

$ python setup.py test or py.test

$ tox

To get flake8 and tox, just pip install them into your virtualenv.

6. Commit your changes and push your branch to GitHub:

$ git add .

$ git commit -m "Your detailed description of your changes."

$ git push origin name-of-your-bugfix-or-feature

7. Submit a pull request through the GitHub website.

20 Chapter 5. Contributing

(25)

instatools Documentation, Release 0.1.8

5.3 Pull Request Guidelines

Before you submit a pull request, check that it meets these guidelines:

1. The pull request should include tests.

2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst.

3. The pull request should work for Python 2.7, 3.4, 3.5 and 3.6, and for PyPy. Checkhttps://travis-ci.org/sentrip/

instatools/pull_requestsand make sure that the tests pass for all supported Python versions.

5.4 Tips

To run a subset of tests:

$ py.test tests.test_instatools

5.5 Deploying

A reminder for the maintainers on how to deploy. Make sure all your changes are committed (including an entry in HISTORY.rst). Then run:

$ bumpversion patch # possible: major / minor / patch

$ git push

$ git push --tags

Travis will then deploy to PyPI if tests pass.

(26)

22 Chapter 5. Contributing

(27)

CHAPTER 6

Credits

6.1 Development Lead

• Djordje Pepic <[email protected]>

6.2 Contributors

None yet. Why not be the first?

(28)

24 Chapter 6. Credits

(29)

CHAPTER 7

History

7.1 0.1.8 (2018-10-09)

• Removed automation functionality and moved it to a separate package

7.2 0.1.7 (2018-10-09)

• Added python 3.7 to tox environment list

7.3 0.1.6 (2018-10-02)

• Rewrote request caching system to use sqlite database instead of flat files

7.4 0.1.5 (2018-09-29)

• Mistake during deployment

7.5 0.1.4 (2018-09-29)

• Fixed media url parsing

7.6 0.1.3 (2018-09-25)

• Fixed cache interception of non-instagram requests

(30)

7.7 0.1.2 (2018-08-27)

• Slight tweaks to api

7.8 0.1.1 (2018-08-17)

• Added response caching for testing.

7.9 0.1.0 (2018-05-25)

• First release on PyPI.

26 Chapter 7. History

(31)

CHAPTER 8

Indices and tables

• genindex

• modindex

• search

(32)

28 Chapter 8. Indices and tables

(33)

Python Module Index

i

instatools,16 instatools.api,11 instatools.cache,12 instatools.instagram,10 instatools.instagram.feeds,7 instatools.instagram.hub,8

instatools.instagram.instagram,8 instatools.instagram.profile,9 instatools.instagram.search,10 instatools.models,12

instatools.session,14

(34)

30 Python Module Index

(35)

Index

A

action() (instatools.api.ApiMethod method),11 activity (instatools.instagram.hub.Hub attribute),8 ApiMethod (class in instatools.api),11

approve() (instatools.Instagram method),16

approve() (instatools.instagram.Instagram method),10 approve() (instatools.instagram.instagram.Instagram

method),8

approve() (instatools.models.User method),13

B

biography (instatools.instagram.profile.Profile attribute), 9

block() (instatools.Instagram method),16

block() (instatools.instagram.Instagram method),10 block() (instatools.instagram.instagram.Instagram

method),8

block() (instatools.models.User method),13

build_form_body() (instatools.session.Session static method),14

C

change_password() (instatools.instagram.profile.Profile method),9

change_profile_picture() (insta-

tools.instagram.profile.Profile method),9 clear() (in module instatools.cache),12

clear() (instatools.cache.DataBaseCache method),12 Comment (class in instatools.models),12

comment (instatools.models.ModelFactory attribute),13 comment() (instatools.Instagram method),16

comment() (instatools.instagram.Instagram method),10 comment() (instatools.instagram.instagram.Instagram

method),8

comments (instatools.models.Post attribute),13

configure_data() (instatools.session.Session static method),14

configure_data_photo() (instatools.session.Session static method),14

configure_data_video() (instatools.session.Session static method),14

current (instatools.instagram.instagram.Users attribute),9

D

DataBaseCache (class in instatools.cache),12 default (instatools.models.ModelFactory attribute),13 delete() (instatools.cache.DataBaseCache method),12 device_id (instatools.session.Session attribute),14 direct_message() (instatools.Instagram method),16 direct_message() (instatools.instagram.Instagram

method),10

direct_message() (insta-

tools.instagram.instagram.Instagram method), 8

direct_message() (instatools.models.User method),14 direct_share() (instatools.Instagram method),16

direct_share() (instatools.instagram.Instagram method), 10

direct_share() (instatools.instagram.instagram.Instagram method),8

direct_share() (instatools.models.User method),14 download() (instatools.models.Post method),13

E

edit() (instatools.instagram.profile.Profile method),9 edit_caption() (instatools.Instagram method),16

edit_caption() (instatools.instagram.Instagram method), 10

edit_caption() (instatools.instagram.instagram.Instagram method),8

explore (instatools.instagram.hub.Hub attribute),8 exponential_sleep_increase (instatools.session.Session

attribute),14

external_url (instatools.instagram.profile.Profile at- tribute),9

F

facebook() (instatools.instagram.search.Search method), 10

(36)

feed (instatools.models.User attribute),14 feed() (instatools.api.ApiMethod method),11 FeedReader (class in instatools.instagram.feeds),7 Feeds (class in instatools.instagram.feeds),7 follow() (instatools.Instagram method),16

follow() (instatools.instagram.Instagram method),10 follow() (instatools.instagram.instagram.Instagram

method),8

follow() (instatools.models.User method),14

follow_requests (instatools.instagram.profile.Profile at- tribute),9

followers (instatools.models.User attribute),14 following (instatools.models.User attribute),14

following_activity (instatools.instagram.hub.Hub at- tribute),8

form() (instatools.api.ApiMethod method),12

form_data_for_message() (instatools.session.Session method),14

form_headers() (instatools.session.Session static method),14

friendship_status (instatools.models.ModelFactory attribute),13

full_name (instatools.instagram.profile.Profile attribute), 9

G

generate_device_id() (in module instatools.session),16 generate_signature() (in module instatools.session),16 generate_upload_id() (in module instatools.session),16 generate_uuid() (in module instatools.session),16 get() (instatools.cache.DataBaseCache method),12 get_comments() (instatools.Instagram method),16 get_comments() (instatools.instagram.Instagram

method),10

get_comments() (insta-

tools.instagram.instagram.Instagram method), 8

get_followers() (instatools.Instagram method),16 get_followers() (instatools.instagram.Instagram method),

10

get_followers() (instatools.instagram.instagram.Instagram method),8

get_following() (instatools.Instagram method),16 get_following() (instatools.instagram.Instagram method),

10

get_following() (instatools.instagram.instagram.Instagram method),8

get_friendship() (instatools.Instagram method),16 get_friendship() (instatools.instagram.Instagram

method),10

get_friendship() (instatools.instagram.instagram.Instagram method),8

get_geo_media() (instatools.Instagram method),16

get_geo_media() (instatools.instagram.Instagram method),10

get_geo_media() (insta-

tools.instagram.instagram.Instagram method), 8

get_likers() (instatools.Instagram method),16

get_likers() (instatools.instagram.Instagram method),10 get_likers() (instatools.instagram.instagram.Instagram

method),8

get_post() (instatools.Instagram method),17

get_post() (instatools.instagram.Instagram method),10 get_post() (instatools.instagram.instagram.Instagram

method),8

get_story() (instatools.Instagram method),17

get_story() (instatools.instagram.Instagram method),10 get_story() (instatools.instagram.instagram.Instagram

method),8

get_user() (instatools.Instagram method),17

get_user() (instatools.instagram.Instagram method),10 get_user() (instatools.instagram.instagram.Instagram

method),8

get_username() (instatools.Instagram method),17 get_username() (instatools.instagram.Instagram method),

10

get_username() (instatools.instagram.instagram.Instagram method),8

H

Hub (class in instatools.instagram.hub),8

I

ignore() (instatools.Instagram method),17

ignore() (instatools.instagram.Instagram method),10 ignore() (instatools.instagram.instagram.Instagram

method),8

ignore() (instatools.models.User method),14 inbox (instatools.instagram.hub.Hub attribute),8 Instagram (class in instatools),16

Instagram (class in instatools.instagram),10

Instagram (class in instatools.instagram.instagram),8 instatools (module),16

instatools.api (module),11 instatools.cache (module),12 instatools.instagram (module),10 instatools.instagram.feeds (module),7 instatools.instagram.hub (module),8 instatools.instagram.instagram (module),8 instatools.instagram.profile (module),9 instatools.instagram.search (module),10 instatools.models (module),12

instatools.session (module),14

item (instatools.models.ModelFactory attribute),13

32 Index

(37)

instatools Documentation, Release 0.1.8

L

like() (instatools.Instagram method),17

like() (instatools.instagram.Instagram method),10 like() (instatools.instagram.instagram.Instagram method),

8

liked (instatools.instagram.feeds.Feeds attribute),7 likers (instatools.models.Post attribute),13 Location (class in instatools.models),12

location (instatools.models.ModelFactory attribute),13 location() (instatools.instagram.feeds.Feeds method),7 locations() (instatools.instagram.search.Search method),

10

login() (instatools.Instagram method),17

login() (instatools.instagram.Instagram method),10 login() (instatools.instagram.instagram.Instagram

method),8

login() (instatools.session.Session method),14 login_data() (instatools.session.Session method),15 logout() (instatools.Instagram method),17

logout() (instatools.instagram.Instagram method),10 logout() (instatools.instagram.instagram.Instagram

method),8

logout() (instatools.session.Session method),15

M

megaphone (instatools.instagram.hub.Hub attribute),8 Model (class in instatools.models),13

ModelFactory (class in instatools.models),13

P

parse() (instatools.models.Comment class method),12 parse() (instatools.models.Location class method),12 parse() (instatools.models.Model class method),13 parse() (instatools.models.Post class method),13 parse() (instatools.models.Relationship class method),13 parse() (instatools.models.User class method),14 parse_list() (instatools.models.Model class method),13 password (instatools.Instagram attribute),17

password (instatools.instagram.Instagram attribute),11 password (instatools.instagram.instagram.Instagram at-

tribute),9

password (instatools.session.Session attribute),15 paths (instatools.session.Session attribute),15 popular (instatools.instagram.feeds.Feeds attribute),7 Post (class in instatools.models),13

post (instatools.models.ModelFactory attribute),13 post() (instatools.Instagram method),17

post() (instatools.instagram.Instagram method),11 post() (instatools.instagram.instagram.Instagram

method),9

Profile (class in instatools.instagram.profile),9

R

rank_token (instatools.session.Session attribute),15

ranked_item (instatools.models.ModelFactory attribute), 13

read() (in module instatools.cache),12 record() (in module instatools.cache),12 Relationship (class in instatools.models),13

relationship (instatools.models.ModelFactory attribute), 13

relog_after_failed (instatools.session.Session attribute), 15

remove() (instatools.models.Comment method),12 remove_comment() (instatools.Instagram method),17 remove_comment() (instatools.instagram.Instagram

method),11

remove_comment() (insta-

tools.instagram.instagram.Instagram method), 9

remove_post() (instatools.Instagram method),17

remove_post() (instatools.instagram.Instagram method), 11

remove_post() (instatools.instagram.instagram.Instagram method),9

remove_profile_picture() (insta-

tools.instagram.profile.Profile method),9 remove_tag() (instatools.Instagram method),17

remove_tag() (instatools.instagram.Instagram method), 11

remove_tag() (instatools.instagram.instagram.Instagram method),9

reply() (instatools.models.Comment method),12 request() (instatools.session.Session method),15 request_safely() (instatools.session.Session method),15 requests_to_break (instatools.session.Session attribute),

15

requires_login() (in module instatools.api),12

reset() (instatools.instagram.feeds.FeedReader method),7

S

save() (instatools.Instagram method),17

save() (instatools.instagram.Instagram method),11 save() (instatools.instagram.instagram.Instagram

method),9

save() (instatools.models.Post method),13

saved (instatools.instagram.feeds.Feeds attribute),7 Search (class in instatools.instagram.search),10 Session (class in instatools.session),14

session_data (instatools.session.Session attribute),15 set() (instatools.cache.DataBaseCache method),12 set_private() (instatools.instagram.profile.Profile

method),9

set_proxy() (instatools.session.Session method),15 set_public() (instatools.instagram.profile.Profile method),

9

setup() (instatools.session.Session method),15 share() (instatools.models.Post method),13

(38)

share_inbox (instatools.instagram.hub.Hub attribute),8 sleep_on_break (instatools.session.Session attribute),15 sleep_on_page (instatools.session.Session attribute),15 switch_user() (instatools.Instagram method),17

switch_user() (instatools.instagram.Instagram method), 11

switch_user() (instatools.instagram.instagram.Instagram method),9

switch_user() (instatools.session.Session method),15

T

tag() (instatools.instagram.feeds.Feeds method),7 tags() (instatools.instagram.search.Search method),10 threads() (instatools.instagram.profile.Profile method),9 timeline (instatools.instagram.feeds.Feeds attribute),7 token (instatools.session.Session attribute),15

U

unblock() (instatools.Instagram method),17

unblock() (instatools.instagram.Instagram method),11 unblock() (instatools.instagram.instagram.Instagram

method),9

unblock() (instatools.models.User method),14 unfollow() (instatools.Instagram method),17

unfollow() (instatools.instagram.Instagram method),11 unfollow() (instatools.instagram.instagram.Instagram

method),9

unfollow() (instatools.models.User method),14 unlike() (instatools.Instagram method),17

unlike() (instatools.instagram.Instagram method),11 unlike() (instatools.instagram.instagram.Instagram

method),9

unsave() (instatools.Instagram method),17

unsave() (instatools.instagram.Instagram method),11 unsave() (instatools.instagram.instagram.Instagram

method),9

unsave() (instatools.models.Post method),13

update() (instatools.instagram.instagram.Users method), 9

upload() (instatools.models.Post method),13

upload_data_photo() (instatools.session.Session method), 15

upload_headers() (instatools.session.Session static method),15

url() (instatools.session.Session method),16 User (class in instatools.models),13

user (instatools.models.ModelFactory attribute),13 user() (instatools.instagram.feeds.Feeds method),7 user_tags() (instatools.instagram.feeds.Feeds method),7 username (instatools.Instagram attribute),17

username (instatools.instagram.Instagram attribute),11 username (instatools.instagram.instagram.Instagram at-

tribute),9

username (instatools.session.Session attribute),16

username_id (instatools.Instagram attribute),17

username_id (instatools.instagram.Instagram attribute), 11

username_id (instatools.instagram.instagram.Instagram attribute),9

username_id (instatools.session.Session attribute),16 Users (class in instatools.instagram.instagram),9 users() (instatools.instagram.search.Search method),10 uuid (instatools.session.Session attribute),16

W

wait_limit() (instatools.session.Session method),16

34 Index

References

Related documents

Enhanced operational safety; operational risks; Safety Management System; SMS; Safety II; Paperless SMS; Prague

username Required Username assigned to merchant account password Required Password for the specified username transactionid Required Original Payment Gateway transaction id

username Required Username assigned to merchant account password Required Password for the specified username transactionid Required Original Payment Gateway transaction

If a specific script beyond this capability is requested by Client and it must be purchased or created by Developer at Client’s request, the charge for the script, if any, will

The FCC-ee enables precision measurements of the Z, the W, the Higgs boson and the top quark properties, together with those of input parameters to the standard model, such as

In this study, patients showing no changes in the submucosal layer or deeper on EUS included patients with mucosal Figure 5 A group C patient with submucosal cancer (slight invasion

• Refer to the “Filing Your Expense Report for Out-of-Pocket Expenses” memo: if the name and address is correct, insert the word “self” in the ‘Make Check Payable To’

type Required update update = Update an un-captured Transaction username Required Username assigned to merchant account password Required Password for the specified username