- This script automatically opens multiple browser tabs to access URLs, which may trigger robot detection mechanisms on websites.
- Use responsibly; the repository owner is not liable for any issues resulting from misuse or automated detection by websites.
Before starting, ensure the following:
- Python: Version 3.7 or higher installed on your system. You can download it from python.org.
- Mozilla Firefox: Download and install it from Mozilla Firefox.
- Geckodriver: Download the Geckodriver that matches your Firefox version from Geckodriver Releases.
- Windows: Download the
.zipfile and extract it. - Mac/Linux: Download the
.tar.gzfile and extract it.
- Windows: Download the
- CSV File: Prepare a CSV file named
Key_Contributions_with_URLs.csvwith the following structure:
| Title | URL |
|---|---|
| Paper 1 | https://example.com/paper1.pdf |
| Paper 2 | https://example.com/paper2.pdf |
| Paper 3 | https://example.com/paper3.pdf |
- Move the extracted
geckodriver.exeto a folder likeC:\geckodriver. - Add this folder to your system PATH:
- Right-click on This PC > Properties.
- Select Advanced System Settings > Environment Variables.
- Under System Variables, find
Pathand click Edit. - Add the path to the folder (e.g.,
C:\geckodriver). - Click OK to save changes.
- Move the extracted
geckodriverto/usr/local/bin:sudo mv geckodriver /usr/local/bin/
- Make it executable:
chmod +x /usr/local/bin/geckodriver
- Open a terminal or command prompt.
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- Windows:
venv\Scripts\activate
- Mac/Linux:
source venv/bin/activate
- Windows:
- Install required libraries:
pip install -r requirements.txt
- Place the
Key_Contributions_with_URLs.csvfile in the same directory as the script. - Update the
firefox_driver_pathin the script to the full path of Geckodriver. - Run the script:
python firefox_browser_opener.py
- Reads the
Key_Contributions_with_URLs.csvfile. - Validates the structure of the file.
- Opens each URL in a new tab in Firefox.
- Prints the title and URL being accessed.
- Waits briefly before moving to the next URL.
- Error: Geckodriver not found: Ensure Geckodriver is in your system PATH or update the
firefox_driver_pathvariable in the script. - CSV File Errors: Ensure the file contains
TitleandURLcolumns and is properly formatted. - Robot Detection: If the website blocks access, try reducing the number of tabs opened or increase the delay between actions.
- This script is designed for educational purposes and research workflows. Use it responsibly.
- Always ensure compliance with website terms of use when automating access.