You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop parsing each page four times.
When you run response.body |> Floki.find(...), you’re really running the equivalent of response.body |> Floki.parse() |> Floki.find(...) which means your four Floki.finds are parsing the whole document four times.
Instead, try parsed_body = Floki.parse(response.body) then parsed_body |> Floki.find(...).```
The text was updated successfully, but these errors were encountered:
Based on:
https://elixirforum.com/t/web-scraping-tools/4823/31
The text was updated successfully, but these errors were encountered: