This Python script scrapes links from Google search results for a given query and saves them to either a text file or an Excel file.
- Clone this repository to your local machine.
- Navigate to the repository directory.
- Install the required dependencies using
pip
and the providedrequirements.txt
file:
pip install -r requirements.txt
Usage
Run the script using Python.
Follow the prompts:
Enter the search query.
Enter the number of pages to scrape.
Specify the output file name (without extension).
Choose the output format (txt or excel).