Docs
PyPI Verified
insta-collect
A modular automation tool for Instagram data extraction, optimized for research and social analysis.
View on PyPIInstallation
pip install insta-collect
Note: Playwright binaries required:
playwright install
CLI Usage
insta-collect --tag donaldtrump --limit 7
Sample JSON Output
[
{
"url": "https://www.instagram.com/p/DS3MmgOCTBl/",
"caption": "O presidente dos Estados Unidos, Donald Trump...",
"caption_status": "long_text",
"timestamp": "2025-12-29T21:30:31.000Z",
"is_video": false,
"hashtags": [
"EUA",
"Venezuela",
"DonaldTrump",
"Ataque",
"JovemPanNews"
],
"mentions": [
"jovempannews"
],
"source_tag": "donaldtrump"
},
,
{
"url": "https://www.instagram.com/p/CrVuUBbN5bQ/",
"caption": "Following the new charges against US ex-President Donald Trump...",
"timestamp": "2023-04-22T13:04:10.000Z",
"is_video": false,
"hashtags": [
"TheAfghan",
"Afghanistan",
"donaldtrump",
"joebiden"
],
"mentions": [],
"source_tag": "donaldtrump"
}
]
HTML Comment Parser
python3 insta-collect.py obama.html --preview 20
[+] Total entries saved: 239 [+] JSON/XLSX generated. --- PREVIEW --- 1. @primo_18__: Epsteins island crew 2. @mohhco: All the pedophiles in ONE picture!!! 3. @therealbunbun40: 3 great president's 4. @southernmommaa: President Bush! President Obama! ๐ฉท๐๐บ๐ธ๐ 5. @lo__s___: Clinton is the best president in this pic 6. @wumi_18: Clinton the better person!! 7. @benmary01: Every achievement starts with a decision to try ignorance destorys 8. @allmyvapesaredead: All thinking about the children theyโre going to have for lunch 9. @collinsolivedenise: What our country needs again real leadership ...
Data Summary
URL: Direct Post Links
Caption: Full Post Metadata
Entities: Hashtags & Mentions
System: Auto-filtering