passivebot / facebook-marketplace-scraper

This repository contains a script to scrape Facebook Marketplace data using Playwright, BeautifulSoup and Streamlit.
https://www.youtube.com/watch?v=vjsQLIyUY-I
196 stars 56 forks source link

CSS selectors outdated #2

Open Sarnes opened 10 months ago

Sarnes commented 10 months ago

I believe facebook has changed their website a little. I think the more efficient scraper to use is playwright but i have the updated selectors here somewhere. Trying to make a pull request

Sarnes commented 10 months ago

Okay so it's just the price, the location, and the webdriver wait condition. I hope this helps. I'm thinking I'll still do the pull request in case it helps someone

Badr10 commented 10 months ago

there is an issue I can not pull the price, the location also the specific URL for each item

Sarnes commented 10 months ago

Alright give me a minute. Testing it now.

Sarnes commented 10 months ago

Okay so havent been able to test it yet (just fixed an annnoying bug in my environment) but just updated the box selector (the 'findall' method). Forgot to update that. Im still trying to test it but figured I'd say it.

harmindersinghnijjar commented 8 months ago

Hey all,

I'm working on an updated iteration of the scraper that should work right out of the box. Thank you for informing me of the change in CSS selectors that caused the scraper to break.