Scraping Google Autocomplete suggestions for countries.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Readme.md
autocomplete_search.py
countries.txt

Readme.md

Google-Autocomplete-analysis

Script and data in this repository are for scraping responses of Google Autocomplete to questions of the form why is <country x> so.

Methodology

The data file is based on data from Natural Earth. Additional flags for plural and definite form were added, thus the script handles adjustments such as the following automatically:

  • why is the Central African Republic so: definite article
  • why are The Bahamas so: plural, the definite article is part of the official name
  • why are the Philippines so: plural and definite article

Further, the data file contains various naming variants for the United States of America as well as for the United Kingdom (for the latter, Great Britain was also included, despite these not being identical).

Context

This script has been employed for assembling the input data to The World through the Eyes of a Search Algorithm on the Information Geographies blog of the Oxford Internet Institute at the University of Oxford.

Happy and powerful countries according to Google Autocomplete