diff --git a/README.md b/README.md index 94df454..8938f0d 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ end ## Usage Examples ```elixir +# Get latest available crawl of a URL +{:ok, %{response: _, headers: _, warc: _}} = CommonCrawl.get_latest_for_url("https://example.com") + # Get list of available crawls crawls = CommonCrawl.collinfo() @@ -37,9 +40,6 @@ crawl = List.first(crawls) metadata["length"] ) -# Get latest available crawl of a URL -{:ok, %{response: _, headers: _, warc: _}} = CommonCrawl.get_latest_for_url("https://example.com") - # Stream all entries from index files CommonCrawl.Index.stream("CC-MAIN-2024-51") |> Stream.filter(fn {_key, _timestamp, metadata} ->