Skip to main content

parsing/automation/statistic instagram.com

Project description

Build Status PyPI Code Climate

💻 Library for instagram.com automation.
♥️ Like instagram feed, username profile, location, tag.
📊 Get statistic of any public account.

Requirements

  • Pyhton 2.7/3

  • You need to have PhantomJS or Chrome web driver for work. Download and place binary from archive to bin folder:

Examples

  • Example of using package for getting account statistic:

    from insta_browser import InstaMeter
    im = InstaMeter(username='al_kricha')
    im.analyze_profile()
    im.print_account_statistic()
    im.print_top_liked()

    result:

    +-- https://instagram.com/al_kricha/ --------------------------+
    |   counter                    |             value             |
    +------------------------------+-------------------------------+
    |   followed                   |              402              |
    |   posts                      |              397              |
    |   comments                   |             1602              |
    |   likes                      |             20429             |
    |   following                  |              211              |
    |   video views                |             6138              |
    |                                                              |
    +--------- https://github.com/aLkRicha/insta_browser ----------+
    +--------------------------------------------------------------+
    |                       top liked posts                        |
    +--------------------------------------------------------------+
    |       https://instagram.com/p/BVIUvMkj1RV/ - 139 likes       |
    |       https://instagram.com/p/BTzJ38-DkUT/ - 132 likes       |
    |       https://instagram.com/p/BI8rgr-gXKg/ - 129 likes       |
    |       https://instagram.com/p/BW-I6o6DBjm/ - 119 likes       |
    |       https://instagram.com/p/BM4_XSoFhck/ - 118 likes       |
    |       https://instagram.com/p/BJVm3KIA-Vj/ - 117 likes       |
    |       https://instagram.com/p/BIhuQaCgRxI/ - 113 likes       |
    |       https://instagram.com/p/BM6XgB2l_r7/ - 112 likes       |
    |       https://instagram.com/p/BMHiRNUlHvh/ - 112 likes       |
    |       https://instagram.com/p/BLmMEwjlElP/ - 111 likes       |
    +--------------------------------------------------------------+
  • Example of using package for liking specific user:

    import os
    from insta_browser import browser
    
    br = browser.Browser(
        debug=True,
        chrome=False,
        cookie_path=os.path.join('var', 'cookies'),
        log_path=os.path.join('var', 'logs'),
        db_path=os.path.join('var', 'db'),
        exclude=os.path.join('var', 'exclude.txt')
    )
    
    try:
        br.auth('YOUR_INSTA_LOGIN', 'YOUR_INSTA_PASSWORD')
        br.process_user('al_kricha')
        print(br.get_summary())
    finally:
        br.close_all()

Other examples can be seen in my repository: insta_bot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

insta_browser-0.8.2.21.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insta_browser-0.8.2.21-py2.py3-none-any.whl (17.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file insta_browser-0.8.2.21.tar.gz.

File metadata

File hashes

Hashes for insta_browser-0.8.2.21.tar.gz
Algorithm Hash digest
SHA256 6328dc6c1333200a148dcb0a02bc07c81ccf9afaf83f83ea079a7120aa45eb2f
MD5 21928e803fa9231ceef068d560a1698d
BLAKE2b-256 897773755ca1e7b71cc483ad59c8fdb12299fc53049ca8a9e4945d5b55967e9d

See more details on using hashes here.

File details

Details for the file insta_browser-0.8.2.21-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for insta_browser-0.8.2.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0c653d1e56edf5cf63d62d325bd804caeb1a3cef788bf77656ef990d320b5c7a
MD5 5990867ead12b1f28596921f664d1013
BLAKE2b-256 d492762793236ce5cf22f99fb12d4bd77f79b99be462b5bf5f9461599f22555c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page