Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ximaz/instagram-api
- Owner: Ximaz
- License: gpl-3.0
- Created: 2023-03-28T22:25:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T16:26:54.000Z (2 months ago)
- Last Synced: 2024-11-12T17:29:47.941Z (2 months ago)
- Topics: api, instagram, instagram-api, instagram-bot, instagram-client, instagram-downloader, instagram-feed, instagram-scraper, python, python-scraper, python3, scraper, scraping, scraping-websites
- Language: Python
- Homepage:
- Size: 780 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 ApiGramclass 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): ...
```