Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues getting group listings: getting some listings, not all. URL parameters don't seem to work. #56

Open
aoiotoko opened this issue May 21, 2024 · 2 comments

Comments

@aoiotoko
Copy link

Hi. I'm trying to fetch the latest item listings from a FB group in chronological order but for some reason I seem to get random listings. They do appear in chronological order, but they're definitely not all of them. It's like I'm getting one or two from each of the past few days, but not even the ones from the current day, it seems really random.

I've tried to fix the issue by adding ?sorting_setting=CHRONOLOGICAL_LISTINGS and ?v=timeline to the start_url inside get_posts() to no avail (those parameters seem to make no difference).

Does anyone have any suggestions?

Thanks!

@aoiotoko
Copy link
Author

Here's the code that does the fetching:

for post in get_posts(group="utahboardgamexchange", base_url="https://mbasic.facebook.com", start_url="https://mbasic.facebook.com/groups/utahboardgamexchange/?sorting_setting=CHRONOLOGICAL_LISTINGS", pages=5, options={
        "posts_per_page": 200
    }):
    print(post['text'])

@gavinnn101
Copy link

Has anyone had any luck figuring this out? Running into the same issue with ?sorting_setting=CHRONOLOGICAL working on the desktop facebook site but the mobile/mbasic site doesn't respect it..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants