Skip to main content

instagram scrapping module

Project description

https://travis-ci.org/midnightSuyama/instagram-explore.svg?branch=master https://badge.fury.io/py/instagram-explore.svg

instagram scrapping module

Installation

$ pip install instagram-explore

Usage

User

import instagram_explore as ie

# Search user name
res = ie.user('instagram')
print(res.data)                   # All
print(res.data['media']['nodes']) # Media list

# Next page
data, cursor = ie.user('instagram', res.cursor)

# Image only
images = ie.user_images('instagram').data

Tag

import instagram_explore as ie

# Search tag name
res = ie.tag('cat')
print(res.data)                   # All
print(res.data['media']['nodes']) # Media list

# Next page
data, cursor = ie.tag('cat', res.cursor)

# Image only
images = ie.tag_images('cat').data

Location

import instagram_explore as ie

# Search location id
res = ie.location('7226110')
print(res.data)                   # All
print(res.data['media']['nodes']) # Media list

# Next page
data, cursor = ie.location('7226110', res.cursor)

# Image only
images = ie.location_images('7226110').data

Media

import instagram_explore as ie

# Search media code
res = ie.media('BFRO_5WBQfc')
print(res.data)

# Image only
image = ie.media_image('BFRO_5WBQfc').data

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

instagram-explore-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file instagram-explore-0.1.0.tar.gz.

File metadata

File hashes

Hashes for instagram-explore-0.1.0.tar.gz
Algorithm Hash digest
SHA256 688810c89322eb49e53b214ac1a1f667360f9345f74b5560de858c14ac9e6a9d
MD5 cf8b64f86164e06dd2117506758a0b54
BLAKE2b-256 8a8aa6700fb669ccd5c465793bd1a149c0968c2088e72f7255f0d4f2352eae42

See more details on using hashes here.

Provenance

Supported by

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