JustAnotherArchivist / snscrape

A social networking service scraper in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Group Doesn't exist.

Subhan-Zaheer opened this issue · comments

Describe the bug

I'm trying to scrape a Facebook Group data but couldn't do that as I am facing following error :
ScraperException: Code container ID marker not found (does the group exist?)

How to reproduce

import snscrape

# Fetch the Facebook posts
count = 10
for i, post in enumerate(snscrape.modules.facebook.FacebookGroupScraper('instantdata').get_items()):
    if i > count:
        break

This is the shortest possible code that causes the error.

Expected behaviour

import snscrape

# Fetch the Facebook posts
count = 10
for i, post in enumerate(snscrape.modules.facebook.FacebookGroupScraper('instantdata').get_items()):
    if i > count:
        break

This is the code I am using to scrape data and it should return me scraped data.

Screenshots and recordings

image

Operating system

Windows 11

Python version: output of python3 --version

Python 3.10.11

snscrape version: output of snscrape --version

snscrape 0.7.0.20230622

Scraper

FacebookGroupScraper

How are you using snscrape?

Module (import snscrape.modules.something in Python code)

Backtrace

No response

Log output

No response

Dump of locals

No response

Additional context

No response

Duplicate of #121?

Duplicate of #121?

Yes same issue.

Duplicate of #121?

Yes same issue.

What should i do now ? is there any way to solve it ?

If an issue is open, it means it is not fixed. If a workaround existed, it would be mentioned there.