Skip to content

OTP application to collect contact data from local website.

Notifications You must be signed in to change notification settings

pablonahuelgomez/qcec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elixir CI

QCEC

QCEC is an OTP application which collects and retrieves information from Quilmes Compra En Casa.

QCEC fetches html information from the site using:

qcec $ iex -S mix
# Wait for it, a logger will list fetched & parsed categories
iex> :ok = QCEC.Server.load_ads

And that's it with scraping. QCEC stores the parsed and fetched information in ETS tables, making them accessible via this API:

iex> {:ok, ads} = QCEC.AdServer.lookup :bakery
iex> hd(ads)
%QCEC.Ad{
  address: "Example",
  category_name: :bakery,
  city: "City",
  image_url: "url",
  links: [
    %{
      link: "https://maps.google.com/",
      type: "google"
    },
    %{link: "https://www.facebook.com/etc/", type: "facebook"},
    %{link: "https://www.instagram.com/etc/", type: "instagram"},
    %{
      link: "https://api.whatsapp.com/etc",
      type: "whatsapp"
    }
  ],
  responsible: "etc",
  title: "etc",
  whatsapp: "etc"
}

Installation

If available in Hex, the package can be installed by adding qcec to your list of dependencies in mix.exs:

def deps do
  [
    {:qcec, "~> 0.1.0"}
  ]
end

About

OTP application to collect contact data from local website.

Topics

Resources

Stars

Watchers

Forks