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.
- Host: GitHub
- URL: https://github.com/dkarter/uule_grabber
- Owner: dkarter
- Created: 2016-07-29T22:50:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T14:39:27.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T21:42:48.145Z (over 1 year ago)
- Language: Elixir
- Homepage: https://doriankarter.com
- Size: 14.6 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UuleGrabber
[](https://travis-ci.org/dkarter/uule_grabber) [](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
[](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.