JustAnotherArchivist / snscrape

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

Group Doesn't exist. #1004

Closed Subhan-Zaheer closed 1 year ago

Subhan-Zaheer commented 1 year ago

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

TheTechRobo commented 1 year ago

Duplicate of #121?

Subhan-Zaheer commented 1 year ago

Duplicate of #121?

Yes same issue.

Subhan-Zaheer commented 1 year ago

Duplicate of #121?

Yes same issue.

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

JustAnotherArchivist commented 1 year ago

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