{"id":23286353,"url":"https://github.com/boutzi/page-refresher","last_synced_at":"2026-02-11T21:34:11.100Z","repository":{"id":268796743,"uuid":"905499405","full_name":"Boutzi/page-refresher","owner":"Boutzi","description":"A Python script using Selenium to automatically refresh a webpage at regular intervals.","archived":false,"fork":false,"pushed_at":"2024-12-19T14:54:22.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T21:36:31.058Z","etag":null,"topics":["refresher","script","selenium","selenium-webdriver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Boutzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-19T00:35:32.000Z","updated_at":"2025-01-14T14:22:24.000Z","dependencies_parsed_at":"2024-12-19T01:25:57.576Z","dependency_job_id":"f87b4067-c0c2-40a7-b0c4-c21444a55bc8","html_url":"https://github.com/Boutzi/page-refresher","commit_stats":null,"previous_names":["boutzi/page-refresher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boutzi%2Fpage-refresher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boutzi%2Fpage-refresher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boutzi%2Fpage-refresher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boutzi%2Fpage-refresher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Boutzi","download_url":"https://codeload.github.com/Boutzi/page-refresher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247503135,"owners_count":20949383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["refresher","script","selenium","selenium-webdriver"],"created_at":"2024-12-20T02:11:34.634Z","updated_at":"2026-02-11T21:34:11.050Z","avatar_url":"https://github.com/Boutzi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium Page Refresher\n\nThis script uses Selenium to continuously refresh a webpage as fast as possible, with performance optimizations like disabling images and using headless mode.\n\n---\n\n## Prerequisites\n\nEnsure you have the following installed:\n\n- Python 3.7 or higher\n- `pip` (Python package manager)\n\n---\n\n## Setup Instructions\n\n### 1. Clone the Repository\n\n```bash\n# Replace with your repository URL if applicable\ngit clone https://github.com/Boutzi/page-refresher.git\ncd page-refresher\n```\n\n### 2. Create a Virtual Environment\n\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n```\n\n### 3. Install Dependencies\n\nInstall the required Python libraries using the `requirements.txt` file:\n\n```bash\npip install --upgrade pip\npip install -r requirements.txt\n```\n\n#### `requirements.txt` content:\n\n```txt\nselenium==4.27.1\nwebdriver-manager==4.0.2\n```\n\n---\n\n## Usage\n\n1. **Edit the Script:**\n   Open the `main.py` file and replace `https://your-website` with the URL of the webpage you want to refresh.\n\n2. **Run the Script:**\n\n   ```bash\n   python main.py\n   ```\n\n3. **Output:**\n   The script will print how long each page refresh takes, for example:\n\n   ```\n   Page refreshed in 0.53 seconds\n   Page refreshed in 0.50 seconds\n   ```\n\n4. **Stop the Script:**\n\n   Press `ESCAPE` or `CTRL + C`\n\n## Optional Configurations\n\n### Disable Image Loading\n\nTo further optimize performance, uncomment the following lines in the script:\n\n```python\nprefs = {\"profile.managed_default_content_settings.images\": 2}\noptions.add_experimental_option(\"prefs\", prefs)\n```\n\n### Adjust Refresh Speed\n\nThe script refreshes the page as quickly as possible. If you want to add a delay between refreshes, modify the loop in `main()`:\n\n```python\nwhile True:\n    start_time = time.time()\n    refreshPage(driver)\n    end_time = time.time()\n    print(f\"Page refreshed in {end_time - start_time:.2f} seconds\")\n    time.sleep(1)  # Add a 1-second delay\n```\n\n---\n\n## Troubleshooting\n\n### Common Issues\n\n#### 1. WebDriver not found\n\nEnsure you have the correct version of Chrome installed and that `webdriver-manager` is up to date:\n\n```bash\npip install --upgrade webdriver-manager\n```\n\n#### 2. Virtual Environment Not Activated\n\nIf you see missing dependencies, ensure the virtual environment is active:\n\n```bash\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n```\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboutzi%2Fpage-refresher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboutzi%2Fpage-refresher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboutzi%2Fpage-refresher/lists"}