Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ximaz/instagram-api

This project is an Instagram API guest-oriented, meaning you can perform actions of data collection without having to register. However, you may be facing some Ratelimits, so I recommend you to put some delay between operations.
https://github.com/ximaz/instagram-api

api instagram instagram-api instagram-bot instagram-client instagram-downloader instagram-feed instagram-scraper python python-scraper python3 scraper scraping scraping-websites

Last synced: about 1 month ago
JSON representation

This project is an Instagram API guest-oriented, meaning you can perform actions of data collection without having to register. However, you may be facing some Ratelimits, so I recommend you to put some delay between operations.

Awesome Lists containing this project

README

        

# Instagram API

This project is an Instagram API guest-oriented, meaning you can perform actions of data collection without having to register. However, you may be facing some Ratelimits, so I recommend you to put some delay between operations.

## Licence
Licence can be found at ``LICENCE``, it's ``GNU GPLv3``.

## Documentation

```python
# from apigram import ApiGram

class ApiGram:
"""
The API class provides the necessary data to perform Instagram API web requests.

To prevent flooding Instagram requests for the same target API, you can use the
`export_api` function to create an API cache.

You can also provide custom proxies to use for the requests.
"""

def __init__(self, username: str = None, proxies: dict[str, str] = None):
"""
API constructor

:param username: The target's account usrename. Used for fresh API.
:type username: str

:param proxies: The proxies to use for the instagram API requests.
:type proxies: dict
"""

def fetch_user_profile(self) -> dict: ...

def fetch_user_metadata(self) -> dict: ...

def fetch_posts(self, first: int = 12, after: str = None) -> dict: ...

def fetch_post_metadata(self, shortcode: str) -> dict: ...

def fetch_highlights(self) -> dict: ...

def fetch_reels(self, page_size: int = 12, max_id: str = None) -> dict: ...

def export_api(self, writable_stream: io.BytesIO): ...

def import_api(self, readable_stream: io.BytesIO): ...
```