{"id":23286366,"url":"https://github.com/xenoswarlocks/company-url-finder","last_synced_at":"2026-02-21T04:01:21.274Z","repository":{"id":266659302,"uuid":"898962223","full_name":"XenosWarlocks/company-url-finder","owner":"XenosWarlocks","description":"Company URL Finder is a robust Python application designed to help you efficiently search and extract company website URLs using multiple strategies. The project provides two main search approaches:","archived":false,"fork":false,"pushed_at":"2024-12-16T06:44:17.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-19T04:35:09.921Z","etag":null,"topics":["algorithm","algorithms","custom-search-api","custom-search-engine","google","python3","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XenosWarlocks.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,"zenodo":null}},"created_at":"2024-12-05T11:14:05.000Z","updated_at":"2024-12-16T06:44:21.000Z","dependencies_parsed_at":"2025-08-21T17:36:19.186Z","dependency_job_id":"95b24d4b-467d-476c-93bf-3af75fcfb082","html_url":"https://github.com/XenosWarlocks/company-url-finder","commit_stats":null,"previous_names":["xenoswarlocks/company_name-to-url"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XenosWarlocks/company-url-finder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenosWarlocks%2Fcompany-url-finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenosWarlocks%2Fcompany-url-finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenosWarlocks%2Fcompany-url-finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenosWarlocks%2Fcompany-url-finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XenosWarlocks","download_url":"https://codeload.github.com/XenosWarlocks/company-url-finder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenosWarlocks%2Fcompany-url-finder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T03:11:15.450Z","status":"ssl_error","status_checked_at":"2026-02-21T03:10:34.920Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["algorithm","algorithms","custom-search-api","custom-search-engine","google","python3","selenium-webdriver"],"created_at":"2024-12-20T02:11:36.778Z","updated_at":"2026-02-21T04:01:21.215Z","avatar_url":"https://github.com/XenosWarlocks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Company URL Finder\n\n## Overview\n\nCompany URL Finder is a robust Python application designed to help you efficiently search and extract company website URLs using multiple strategies. The project provides two main search approaches:\n\n1. **Selenium Web Scraping**: Uses Selenium WebDriver to perform direct Google searches\n2. **Google Custom Search API**: Leverages Google's official search API for precise URL retrieval\n\n### Key Features\n\n- Parallel processing of company searches\n- Multiple search strategies\n- Adaptive URL ranking algorithm\n- Error handling and logging\n- Flexible configuration options\n\n## Prerequisites\n\n### System Requirements\n\n- Python 3.8+\n- Chrome Browser (for Selenium)\n- ChromeDriver\n\n### Dependencies\n\nInstall the required dependencies using pip:\n\n```bash\npip install -r requirements.txt\n```\n\n### Environment Setup\n\n1. Create a `.env` file in the project root\n2. Add the following environment variables:\n   ```\n   GOOGLE_CUSTOM_SEARCH_API_KEY=your_google_api_key\n   CUSTOM_SEARCH_ENGINE_ID=your_custom_search_engine_id\n   ```\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   https://github.com/XenosWarlocks/company-url-finder.git\n   cd company-url-finder\n   ```\n\n2. Create a virtual environment:\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows, use `venv\\Scripts\\activate`\n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Install ChromeDriver:\n   - Download compatible with your Chrome browser version\n   - Add to system PATH or specify in script\n\n## Usage\n\n### Input File Preparation\n\nPrepare an Excel file (`companies.xlsx`) with a column named \"Company Name\" containing the list of companies you want to search.\n\n### Running the Application\n\n```bash\npython main.py\n```\n\n### Search Strategy Options\n\n1. **Selenium Google Search (Option 1)**: \n   - Faster, web-scraping approach\n   - Parallel processing\n   - Suitable for smaller lists\n\n2. **Google Custom Search API (Option 2)**: \n   - More precise results\n   - Limited by API quota\n   - Better for comprehensive searches\n\n3. **Combined Strategy (Option 3)**: \n   - First uses Selenium\n   - Then validates/processes with API\n   - Most thorough but slower\n\n## Output Files\n\n- `google_results.csv`: Successful company URL matches\n- `cant_find_urls.csv`: Companies without URL matches\n- `api_results.csv`: Custom Search API results\n\n## Advanced Configuration\n\n### Selenium Searcher\n\nCustomize in `selenium_searcher.py`:\n- `headless`: Run browser invisibly\n- `max_workers`: Control parallel search threads\n\n### URL Ranking Parameters\n\nAdjust in `google_algo.py`:\n- `URL_COUNT_WEIGHT`\n- `URL_ORDER_WEIGHT`\n- `URL_LEN_WEIGHT`\n\n## Extending the Project\n\n### Module Extensions\n\nYou can extend functionality by:\n1. Creating custom URL matching algorithms\n2. Adding more web scraping strategies\n3. Implementing additional ranking methods\n\nExample extension structure:\n```python\nclass CustomURLFinder:\n    def __init__(self, parent_finder):\n        self.parent = parent_finder\n    \n    def custom_url_matching_method(self, company, urls):\n        # Implement custom logic\n        pass\n```\n\n## Troubleshooting\n\n- Ensure ChromeDriver matches your Chrome version\n- Check API key and Search Engine ID\n- Verify input file format\n- Monitor API usage quotas\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenoswarlocks%2Fcompany-url-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxenoswarlocks%2Fcompany-url-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenoswarlocks%2Fcompany-url-finder/lists"}