elixir-crawly / crawly

Crawly, a high-level web crawling & scraping framework for Elixir.
https://hexdocs.pm/crawly
Apache License 2.0
953 stars 112 forks source link

Crawly compilation warnings, undefined Floki functions #283

Closed dogweather closed 7 months ago

dogweather commented 7 months ago
==> crawly
Compiling 41 files (.ex)
warning: Floki.attribute/2 is undefined (module Floki is not available or is yet to be defined)
  lib/crawly/utils.ex:262: Crawly.Utils.extract_requests/3

warning: Floki.find/2 is undefined (module Floki is not available or is yet to be defined)
Invalid call found at 2 locations:
  lib/crawly/utils.ex:262: Crawly.Utils.extract_requests/3
  lib/crawly/utils.ex:293: Crawly.Utils.extract_items/2

warning: Floki.parse_document/1 is undefined (module Floki is not available or is yet to be defined)
  lib/crawly/utils.ex:337: Crawly.Utils.preview/1

warning: Floki.text/1 is undefined (module Floki is not available or is yet to be defined)
  lib/crawly/utils.ex:293: Crawly.Utils.extract_items/2
dogweather commented 7 months ago

I solved this by moving Crawly to the end of the deps in mix.exs.