Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 972 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 972 Bytes

GiphyScraper

Running this project:

  1. Export your Giphy API key as an environment variable with the name of GIPHY_API_KEY
  2. Run mix deps.get to obtain any necessary dependencies

From iex

  1. Run iex using mix
  2. Run GiphyScraper.search("<your term here>"), with whatever term you prefer

From the command-line

  1. Run mix escript.build
  2. Run the executable (likely ./giphy_scraper) with either the -q or --query flags followed by your search term (e.g., ./giphy_scraper -q patriots)

Installation

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

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

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/giphy_scraper.