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

get_posts_by_search: No raw posts (elements) were found in this page. #1113

Open
pitzmoni opened this issue Sep 24, 2024 · 16 comments
Open

get_posts_by_search: No raw posts (elements) were found in this page. #1113

pitzmoni opened this issue Sep 24, 2024 · 16 comments

Comments

@pitzmoni
Copy link

Hi!

This is happening since today. Any idea how to fix this?

Starting to iterate pages
Requesting page from: https://m.facebook.com/search/posts?q=nintendo&filters=eyJyZWNlbnRfcG9zdHM6MCI6IntcIm5hbWVcIjpcInJlY2VudF9wb3N0c1wiLFwiYXJnc1wiOlwiXCJ9In0%3D
Parsing page response
No raw posts (elements) were found in this page.
The page url is: https://www.facebook.com/search/posts?q=nintendo&filters=eyJyZWNlbnRfcG9zdHM6MCI6IntcIm5hbWVcIjpcInJlY2VudF9wb3N0c1wiLFwiYXJnc1wiOlwiXCJ9In0%3D&paipv=0&eav=AfYBYtYXxPsmSCoItP-NULyhOx13CGO6SHQiqtPSRrm2w5taUxlDlImty8q9s1gKi38&_rdr
The page content is:
+------------------------------------------------------------
| Facebook
| :root, .__fb-light-mode:root, .__fb-light-mode {--fds-black:#000000;--fds-black-alpha-05:rgba(0, 0, 0, 0.05);--fds-black-alpha-10:rgba(0, 0, 0, 0.1);--fds-black-alpha-15:rgba(0, 0, 0, 0.15);--fds-black-alpha-20:rgba(0, 0, 0, 0.2);--fds-black-alpha-30:rgba(0, 0, 0, 0.3);--fds-black-alpha-40:rgba(0, 0, 0, 0.4);--fds-black-alpha-50:rgba(0, 0, 0, 0.5);--fds-black-alpha-60:rgba(0, 0, 0, 0.6);--fds-black-alpha-80:rgba(0, 0, 0, 0.8);--fds-blue-05:#ECF3FF;--fds-blue-30:#AAC9FF;--fds-blue-40:#77A7FF;--fds-blue-60:#1877F2;--fds-blue-

etc.

Got 0 raw posts from page
Extracting posts from page 0
Looking for next page URL
Page parser did not find next page URL

Many thanks!

@ahmad-a-radwan07
Copy link

was it working for you yesterday?

@mohit2jain
Copy link

Facing same issue, was working for me yesterday. Please post here if you find any solution.

@pitzmoni
Copy link
Author

was it working for you yesterday?

The same worked well for a long time. I tried with different accounts, IPs, headers, nothing worked. I guess I will try to build something with selenium.

@mohit2jain
Copy link

@pitzmoni looks like you tried moda20/facebook-scraper, its also not working?

@pitzmoni
Copy link
Author

@pitzmoni looks like you tried moda20/facebook-scraper, its also not working?

moda20 fork didn't work either even though using base_url, start_url, mbasicHeaders etc.

@ahmad-a-radwan07
Copy link

the reason it's not working anymore is that the generic facebook version that had the elements setup in the format supposedly tackled by the library is no longer showing, i used to get to that version by using an unsupported user agent, but it just shows unsupported browser message, if anybody can get a url format that would allow us to access that version of facebook the issue would be fixed

@biddy1618
Copy link

I am also having this issue with the get_posts_by_url method. It's been working fine for months.

@Kaosam
Copy link

Kaosam commented Sep 30, 2024

Any news?

@MarcosChavarria
Copy link

MarcosChavarria commented Oct 2, 2024

Facing same issue, looks like m.facebook.com are gone

@pitzmoni any news?

@pitzmoni
Copy link
Author

pitzmoni commented Oct 3, 2024

Facing same issue, looks like m.facebook.com are gone

@pitzmoni any news?

No great progress here. Selenium's output was the same, with Playwright I managed to get some data, but not everything I wanted. Anyone else?

@moda20
Copy link

moda20 commented Oct 4, 2024

@pitzmoni @MarcosChavarria @Kaosam a whiel a go i forked this repo and focused on using the mbasic version to get all the needed data : https://github.com/moda20/facebook-scraper
it still works as far as scraping pages, but you can also try groups. Note that it requires cookies

@Kaosam
Copy link

Kaosam commented Oct 4, 2024

@pitzmoni @MarcosChavarria @Kaosam a whiel a go i forked this repo and focused on using the mbasic version to get all the needed data : https://github.com/moda20/facebook-scraper it still works as far as scraping pages, but you can also try groups. Note that it requires cookies

Thanks for the reply
But I have already opened an issue also inside your fork because also that doesnt work
moda20#66

@kbalicki
Copy link

kbalicki commented Oct 8, 2024

@pitzmoni @MarcosChavarria @Kaosam a whiel a go i forked this repo and focused on using the mbasic version to get all the needed data : https://github.com/moda20/facebook-scraper it still works as far as scraping pages, but you can also try groups. Note that it requires cookies

It does not work either: "Couldn't get any posts."

@Kaosam
Copy link

Kaosam commented Oct 9, 2024

Solved with moda20#66

@Kaosam
Copy link

Kaosam commented Oct 16, 2024

This one can be closed

@pitzmoni
Copy link
Author

This one can be closed

Unfortunately, still no solution to get_posts_by_search, though get_posts works fine.

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

8 participants