google_autocomplete: Google Search Autocomplete

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/googleAutoComplete.R

Description

This function is used to get google search auto complete suggestion. You can get country specific google auto complete results and language specific results.

Usage

1
2
google_autocomplete(query, country = "com", searchLang = "lang_en",
  webInterfaceLang = "en")

Arguments

query

The term for which autocomplete results are retrieved.

country

Get only the country specific results not global results.

searchLang

Language in which search is made.

webInterfaceLang

Language of google search page.

Details

country make sure that results retrieved for query are local to mentioned country. webInterfaceLang parameter is for search suggestions in specific language. searchLang is used to make search in specific language. Please refer to gSubDomain data frame for country availability and country codes. gSearchLang and gWebInLang for search language and search web interface availability respectively.

Value

An list of terms based on the query.

Note

Too many requests can get you blocked. Have delay of 1-2 Sec for each request

Author(s)

Abhinav Yedla abhinavyedla@gmail.com

References

https://sites.google.com/site/tomihasa/google-language-codes https://en.wikipedia.org/wiki/List_of_Google_domains

See Also

gSearchLang,gSubDomain,gWebInLang

Examples

1
2
3
google_autocomplete("Where is olympics", "com","lang_en","en")

google_autocomplete("total athletes", "com")

AbhinavYedla/GoogleAutoComplete documentation built on May 5, 2019, 11:45 a.m.