Read this in other languages: English, Turkish.
A repository containing a Dockerfile and sample Python code to run Firefox in a Docker container for web scraping.
This is a Dockerized Python script that uses Selenium and Firefox to scrape the page source of a given URL. The script is run in headless mode using Xvfb.
Here're some of the project's best features:
- Scrapes the page source of a given URL using Firefox and Selenium.
- Runs in headless mode using Xvfb.
1. Install Docker on your system.
2. Clone the repository.
3. Build the Docker image using the command
sudo docker build -t my-firefox .
4. Run the Docker container using the command
sudo docker run my-firefox
5. The page source of the URL will be printed to the console.
Contributions to the project are welcome. If you find a bug or have a suggestion for a new feature please open an issue or a pull request.
Technologies used in the project:
- Python
- Docker
- Selenium
- Firefox
- Xvfb
If you have any questions or need help with the project please feel free to open an issue on GitHub.
- 🍺 support me Patreon
- ☕ support me buymeacoffee