• Stars
    star
    103
  • Rank 322,839 (Top 7 %)
  • Language
    Python
  • Created about 4 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

People also ask Google scraper. Get as many questions as you need to optimize your site for voice or new content ideas or answering questions about your desired topic.

People Also Ask Google Scraper

PPA scraper is a Python script that, based on a query scrapes Google people also ask questions. You can see this script in action here --> https://www.keywordresearchtool.io/

Buy Me A Coffee

Installation

To install and run this script, we need to install the requirements.txt and the driver. Since we are using Chrome, we need to download the latest Chrome driver.

Requirements

To install requirements.txt, please run the following on the terminal.

pip install requirements.txt

Chrome driver

1.- Step one (Check Chrome Version)

Check which Chrome version you are using.

you can do it via the terminal using the following command:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version

or you can simply go into Chrome and click on Chrome> About Google Chrome. you should see something like:

Google Chrome is up to date.
Version 89.0.4389.90 (Official Build) (x86_64)

2.- Step two (Download Chrome Driver)

Download the correct version of Chrome driver.

Go to https://chromedriver.chromium.org/downloads

And click on your chrome version.

E.g: 'Chrome version 89, please download ChromeDriver 89.0.4389.23'

3.- Step three (Chrome driver permissions)

If you are on MacOS Catalina do the following:

Navigate to the path where your Chromedriver file is located and run

xattr -d com.apple.quarantine chromedriver

4.- Step four (chromedriver path)

You can do either solution:

a.- Move chrome driver to /usr/local/bin/

Make sure you are on the folder chromedriver is and run.

sudo mv chromedriver /usr/local/bin/

b.- Update the chrome driver path on the Python script.

On line 35, update executable_path with your Chrome driver path

executable_path='add_path_here'

Usage

To run the script, we go to the terminal and ensure we are in the correct folder. We type:

python3 paa.py

Once you run the script it will ask you to provide 3 inputs that are necessary.

  1. Add Query: Query that you want to get the answers from.

E.g

netflix stock
  1. How many questions do you want to click?: The more clicks you add the more question you get. Usually, 1 click adds 2 or 3 questions and by default, Google provides 4 questions. So if we add 5 as clicks, then we would get around 15 questions.

  2. Please select your language: I added only 2 languages, English (en) and Spanish (es). Make sure that the language is in lowercase.

Result

Once you run the script, it will output a df with all the questions that found for the query you requested. The output should look like this:

English E.g

                                         Questions
0                        Is Netflix a buy or sell?
1                   Why is Netflix stock dropping?
2               Does Netflix stock pay a dividend?
3                           Is Netflix overvalued?
4             What stock is best to buy right now?
5                  Is Walmart a good stock to buy?
6                          Is Netflix going broke?
7                        What stocks are up today?
8   What is the most expensive stock in the world?
9               What stock pays the best dividend?
10                        Do Amazon pay dividends?
11                Does Apple stock pay a dividend?
12                      Can you invest in Netflix?
13                  What is the future of Netflix?

Spanish E.g

                                           Questions
0                    ¿Cuánto cuesta Netflix al mes?
1          ¿Cuánto cuesta Netflix al año en España?
2              ¿Cómo iniciar una sesión de Netflix?
3   ¿Cuánto cuesta una cuenta en Netflix Venezuela?
4            ¿Cuánto cuesta Netflix en México 2020?
5                       ¿Qué ofrece Netflix basico?
6            ¿Cuánto vale Netflix en Colombia 2020?
7                        ¿Cuánto vale Netflix 2020?
8                   ¿Cuánto está Netflix Perú 2020?
9                ¿Dónde pongo mi código de Netflix?
10  ¿Cómo hago para tener el mes gratis de Netflix?
11             ¿Por qué no puedo acceder a Netflix?

Issues & Contributing

Pull requests are welcome. If you have any issues please open an issue to see if I can help.

More Repositories

1

Google-rank-tracker

SEO: Python script + shell script and cronjob to check ranks on a daily basis
Python
226
star
2

SEO-Dashboard

SEO dashboard from Search console Data using the Google Search API, Mysql database , NodeJS RESTAPI( ExpressJS) and reactJs Dashboard
JavaScript
73
star
3

Keyword-generator-SEO

Script to do keyword research
Python
49
star
4

SEO-Lighthouse-Multiple-URLs

Run multiple Lighthouse reports for different URLs and see how well your URLs are performing separately. Get Overall Performance, Accessibility, Best Practices SEO and more
Python
34
star
5

google-visibility-score

Get your own Google visibility score using Google Search Console Api and your own Keyword list.
Python
25
star
6

Kmeans-SEO

SEO Kmeans
Python
19
star
7

Amazon-Affiliate-report

How to automate Amazon Associates earnings report download
Python
12
star
8

Yandex-Ranking-Factors

Complete Internal List of Yandex Ranking Factors. There are over 1900 individual ranking factors listed, starting at “PageRank
11
star
9

alt-text-image-recognition

Python script that crawls a URL get all alt text then recommends alt text of images using google vision API.
Python
5
star
10

Chile-coronavirus

Scraping and analyzing corona virus data from minsal.cl.
Python
5
star
11

Classification

Training a classifier for the Digits dataset in Python from scratch. No libraries. K-means, Linear Regression and cross validation
Python
5
star
12

SEO-Free-Rank-Check

Work in progress. SEO free rank checker dashboard with Airflow scheduler
Python
3
star
13

technical-seo-checklist

This automated technical SEO checklist will help you check your on-page SEO in a few minutes.
Python
3
star
14

Python-Webmap

Metorite and population Webmaps with Python and Folium
HTML
1
star
15

BDB

Street art search engine. Project for MCO012
PHP
1
star
16

googlebot.com-ip-address

complete list of googlebot.com ip address.
1
star