JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.31k stars 698 forks source link

Example scripts for Telegram and Instagram #1027

Open leockl opened 10 months ago

leockl commented 10 months ago

Hey guys, does anyone have example Python scripts using snscrape for Telegram and Instagram? I tried googling this but can't seem to find examples. Would really appreciate your help with this. Thanks!

leockl commented 6 months ago

Hi Marius, unfortunately I didn’t managed to find the answer for this.

With Telegram, you can use Telethon. I didn’t proceed with Insta, so I don’t know about that.

On Fri, 24 Nov 2023 at 11:47 pm, Marius6391 @.***> wrote:

Hi Leo,

did you meanwhile find an answer, because I'd be interested too?

— Reply to this email directly, view it on GitHub https://github.com/JustAnotherArchivist/snscrape/issues/1027#issuecomment-1825629840, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANY3TVKESLRLHIUEYMMDS3LYGCJOTAVCNFSM6AAAAAA4INFOX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGYZDSOBUGA . You are receiving this because you authored the thread.Message ID: @.***>

TheTechRobo commented 6 months ago

You can check the scraper code's classes. Just instigate one of them, and then call the get_items generator like you would normally.