An open API service indexing awesome lists of open source software.

https://github.com/dkarter/uule_grabber

🌎 Generates UULE codes for Google Search to allow localized searches.
https://github.com/dkarter/uule_grabber

Last synced: over 1 year ago
JSON representation

🌎 Generates UULE codes for Google Search to allow localized searches.

Awesome Lists containing this project

README

          

# UuleGrabber

[![Build Status](https://travis-ci.org/dkarter/uule_grabber.svg?branch=master)](https://travis-ci.org/dkarter/uule_grabber) [![Hex Version](https://img.shields.io/hexpm/v/uule_grabber.svg)](https://hex.pm/packages/uule_grabber)

Generates uule codes for google to allow localized searches.

Get the latest geo locations canonical names csv from:
https://developers.google.com/adwords/api/docs/appendix/geotargeting

To use the generated uule code, apply it to the Google query url.

E.g. To search for pizza in Chicago:

```
https://www.google.com/search?q=pizza&uule=w+CAIQICIeQ2hpY2FnbyxJbGxpbm9pcyxVbml0ZWQgU3RhdGVz
```

## Installation

1. Add `uule_grabber` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:uule_grabber, "~> 0.1.0"}]
end
```

2. Ensure `uule_grabber` is started before your application:

```elixir
def application do
[applications: [:uule_grabber]]
end
```

## Usage

```elixir
UuleGrabber.uule_for_location("Chicago,Illinois,United States")
# "w+CAIQICIeQ2hpY2FnbyxJbGxpbm9pcyxVbml0ZWQgU3RhdGVz"
```

## Credits

Ported to Elixir based on the php implementation:
https://github.com/512banque/uule-grabber

## About

[![Hashrocket logo](https://hashrocket.com/hashrocket_logo.svg)](https://hashrocket.com)

UULE Grabber is supported by the team at [Hashrocket, a
multidisciplinary design and development consultancy](https://hashrocket.com).
If you'd like to [work with us](https://hashrocket.com/contact-us/hire-us) or
[join our team](https://hashrocket.com/contact-us/jobs), don't hesitate to get
in touch.