I attempted to create a web scraping bot to gather job information. Initially, I utilized the Selenium library; however, I encountered a challenge since Selenium doesn't directly provide status codes like traditional web requests. To address this, I turned to the selenium-wire library. Unfortunately, I encountered issues with anti-bot measures, which prevented me from accessing the target website. Subsequently, I tried using both selenium-stealth and undetected chromebrowser solutions, but unfortunately, these attempts were also unsuccessful.
Please help me.
-
Network Manipulation: Utilizing
selenium-wire, the bot has the ability to intercept and modify network requests, which can be useful for debugging, data manipulation, or other advanced use cases. -
Stealthy Browsing: The bot employs
selenium-stealthto mimic human-like browsing behavior, including user agents, languages, and other attributes, reducing the chances of being detected as a bot.
- Python 3.x
- Chrome browser
- ChromeDriver
- undetected-chromedriver
- Required Python packages (install using
pip3):- selenium
- selenium-stealth
- selenium-wire
pip3 install selenium selenium-stealth selenium-wire undetected-chromedriverRemember to always respect the website's robots exclusion standard (robots.txt) and check their terms of service while developing.
This project is licensed under the MIT License.