Google Q&A Scraper is a Flask web application designed to scrape Google's question and answer boxes for a given query. It provides users with a simple interface to input their questions and retrieves relevant answers from Google's search results. This tool can be particularly useful for platforms like Quizlet and Brainly.
-
Scraping Q&A Boxes: Extracts questions and answers from Google's question and answer boxes for a given query.
-
Customization: Allows users to customize the tool by modifying the blacklist and whitelist to include or exclude specific domains from the search results.
To run Google Q&A Scraper, you need the following dependencies:
- Python 3.x
- Flask
- BeautifulSoup
- requests
-
Clone the repository:
git clone https://github.com/Wuhpondiscord/Google-Q-A-Scraper.git
-
Install dependencies:
pip install -r requirements.txt
To use the application locally, follow these steps:
-
Navigate to the project directory:
cd google-qna-scraper
-
Run the application:
python app.py
To deploy the application on Replit, follow these steps:
-
Visit Replit and create or log in to your account.
-
Create a new Python REPL.
-
Copy the contents of
app.py
into themain.py
file in your Replit project. -
Your project files should look something like this:
-
Open the networking section in the top right corner:
-
Set the external port to
80
. -
Press the "run" button.
-
Retrieve the URL to the site from the networking section.
- Blacklist and Whitelist: You can customize the tool by modifying the
blacklist.txt
andwhitelist.txt
files to include or exclude specific domains from the search results.
Contributions are welcome! Please feel free to submit pull requests or open issues for feature requests, bug fixes, or general improvements.