(self, target, platform, source="enhanced_scraper", results=None)
| 10661 | return snap |
| 10662 | |
| 10663 | def social_snapshot(self, target, platform, source="enhanced_scraper", results=None): |
| 10664 | target = (str(target or "").strip()) |
| 10665 | platform = str(platform or "Instagram").strip() or "Instagram" |
| 10666 | if platform.lower() not in {"instagram", "ig", "insta"}: |
| 10667 | return None |
| 10668 | if not target: |
| 10669 | return None |
| 10670 | |
| 10671 | if results is None: |
| 10672 | results = self.enhanced_scraper(target, "Instagram") |
| 10673 | if not isinstance(results, list): |
| 10674 | results = [results] if results else [] |
| 10675 | if not isinstance(results, list): |
| 10676 | results = [] |
| 10677 | return self._append_social_snapshot(target, "Instagram", results, source=source) |
| 10678 | |
| 10679 | def save_creds(self, d): |
| 10680 | incoming = dict(d or {}) |
no test coverage detected