ATTENTION EVERYONE: a new login pop-up might come up when accessing Marketplace, in order to deal with it you should target the "x" on the upper right corner of the popup, it's labeled aria-label="Close": Here's the code that should be added before the scroll down section to handle this (GitHub already contains the updated file): if browser.is_element_present_by_css('div[aria-label="Close"]', wait_time=10): # Click on the element once it's found browser.find_by_css('div[aria-label="Close"]').first.click()
Thank you so much for the compliment and for becoming the 5th subscriber to my channel! I really appreciate your support, it means a lot to me. I hope to see you around in future videos. Thanks again!
Awesome video. Really helped me a lot. How did you get on Facebook Market Place without logging in? Because when I use the url in incognito it does shows me a login page
Hey, there is an initial login window that is able to be closed out, but then a second pop up that can’t be closed out pops up again. Is there a way around this? My CS buddy and I can’t figure it out
It seems that at times Facebook changes the class names. I could be continously updating them as I encounter errors, but are there some more dynamic ways of coding it (maybe utilizing some other libraries) to not have to manually update the code every few days?
There are a couple strategies you can employ to overcome that, such as using other attributes rather than class or even looking for the text content of elements, which is less likely to change over time. You might even want to employ regex if you're dealing with elements whose attributes might change slightly but still follow a certain pattern. Thanks for watching!
For some reason, I am getting "DriverNotFoundError: Driver for chrome was not found." from this line browser= Browser('chrome'). The same issue came up with selenium. The situation did not change even by specifying the chrome browser path
You could try updating chromedriver to latest version (chromedriver.chromium.org/downloads), or one compatible with your current version of chrome. Or it could be a permissions issue.
@@ottunrasheed4076: Did you figure out the solution? I’m having the same issue. @TheDataCircle: I do not know how to check permissions, any help is much appreciated.
Hi man Great video and tutorial! I got a smal issue, it seems to doesnt care about what car, transmission and millage I want to search for. It just gives me resultat within the price and location. Any ideas who i could slove that
Thanks! Check the complete url to see if anything might be missing after the "?" or if there are any typos. That might also happen when there are not enough results with that specific criteria within your region, then marketplace will just fill up the screen with whatever it finds useful.
Hey, to make the scraper run automatically multiple times per day, you can use a scheduling tool like cron on Linux/Mac or the Task Scheduler on Windows.
Hey, thanks for the comment! From what I see on my end you can still access it without login in, but there's a new login pop-up that might come up, in order to deal with it you should target the "x" on the upper right corner of the popup, it's labeled aria-label="Close": Here's a sample: if browser.is_element_present_by_css('div[aria-label="Close"]', wait_time=10): # Click on the element once it's found browser.find_by_css('div[aria-label="Close"]').first.click()
Hi, Great video! Just Subbed! Are you open to paid projects currently? if so what is the best way to reach you to talk details. Hope to hear from you soon!
I'm glad you enjoyed it and thank you for subscribing! For paid projects please reach out to me through thedatacircle.tech@gmail.com. Hope to hear from you soon!