pillaiindu
Hi Everyone!
I want to do some web scraping, for which I wanna use the hound package as it have everything required for web scraping.
I know how to use it in a Phoenix project for testing, which I learnt from Phoenix inside out, thanks to @shankardevy. In a Phoenix project we had to put config :hound, driver: "phantomjs" in config/config.exs, if we were using phantomjs.
But here the situation is a bit different.
- Its not a Phoenix project.
- I want to use it in a file inside
lib/nottest/, as this time I’m using it for web-scraping instead of testing.
Thank you!
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
NobbZ
It should just work…
Make sure its not
runtime: falseand notonly: :testin yourdeps.pillaiindu
Yes, the
runtime: falseandonly: :testisn’t there.Following is my code:
And this is the error
NobbZ
Looks like
:houndhasn’t been started.How do you start
iexand how does yourapplication/1inmix.exslook like?wolfiton
You don’t have a webdriver running for example
phantomjs --wdThis error here is what i posted above in case you want a ref
NobbZ
I was under the assumption that hound would handle the lifecycle
wolfiton
No it doesn’t on it’s own it needs a web driver selenium or phantomjs like help
pillaiindu
I’m running the webdriver, but may be it’s not finding it, or may be I need to tell it explicitly like we do in the Phoenix apps.
wolfiton
I have only used it for testing. Someone else tried using it for receiving content from a page but worked to a certain point you can see our discussion here:
NobbZ
Again, please tell us how you start the
iexsession from where you try to play with hound.Also from that same iex session, please do
Application.get_env(:hound, :driver).If it is returning something else than
"phantomjs", your configuration is not set up properly.pillaiindu
It says
nilLooks like I need to add the config somewhere.