web_programming.instagram_crawler

Attributes

headers

instagram_user

Classes

InstagramUser

Class Instagram crawl instagram user information

Functions

extract_user_profile(→ dict)

May raise json.decoder.JSONDecodeError

test_instagram_user(→ None)

A self running doctest

Module Contents

class web_programming.instagram_crawler.InstagramUser(username)

Class Instagram crawl instagram user information

Usage: (doctest failing on GitHub Actions) # >>> instagram_user = InstagramUser(“github”) # >>> instagram_user.is_verified True # >>> instagram_user.biography ‘Built for developers.’

__repr__() str
__str__() str
get_json() dict

Return a dict of user information

property biography: str
property email: str
property fullname: str
property is_private: bool
property is_verified: bool
property number_of_followers: int
property number_of_followings: int
property number_of_posts: int
property profile_picture_url: str
url
user_data
property username: str
property website: str
web_programming.instagram_crawler.extract_user_profile(script) dict

May raise json.decoder.JSONDecodeError

web_programming.instagram_crawler.test_instagram_user(username: str = 'github') None

A self running doctest >>> test_instagram_user()

web_programming.instagram_crawler.headers
web_programming.instagram_crawler.instagram_user