Python Web Scraper for Contacts

Замовник: AI | Опубліковано: 04.12.2025

I need a clean, well-documented Python script that crawls every result page (1 – 469) of https://institutpf.org/repertoire?postalCode=&radius=&name=&domain=&page=1 and harvests four data points per entry: Contact Name, Company Name, Address, and Telephone Number. Only keep rows where all four items are present; if even one is missing the script must silently skip that contact. While the scraper runs, any unexpected error or request failure should simply be printed to the console so I can see what went wrong without digging through log files. The final dataset has to be written to a single .xlsx workbook with four columns in this exact order: Name | Company | Address | Phone. I will run the code on macOS, so please avoid Windows-only dependencies; otherwise you’re free to choose whatever libraries make the job easiest—requests, BeautifulSoup, pandas, openpyxl, or even Selenium if you think it’s necessary, as long as it installs cleanly with pip on a Mac. Deliverables: • A ready-to-run .py file (Python 3.x) • The generated Excel file as proof of concept (first few pages is fine) • A brief README explaining setup and usage I’m looking for reliable, deterministic scraping with respectful pacing and straightforward, readable code. If that sounds up your alley, let’s do it.