Comments (6)
You will need to add in request options for HTTPoison through the RequestOptions request middleware . The format needs to match the option format in the HTTPoison docs
https://hexdocs.pm/crawly/Crawly.Middlewares.RequestOptions.html
https://hexdocs.pm/httpoison/HTTPoison.Request.html#content
from crawly.
@Unumus did you search through the docs before opening this issue? If you did but didnt' find the RequestOptions
middleware, we might need to update the docs for it
from crawly.
@Ziinc I was also thinking about making an explicit example somewhere in docs...
from crawly.
@Ziinc, I searched. But not found. I think it will be helpful to mention here: https://hexdocs.pm/crawly/configuration.html#proxy-binary the middleware.requests to complete proxy configuration.
from crawly.
@Unumus ah I see, the docs got out of sync, the proxy setting on :config is from an older version that is a breaking change. We'll need to update that.
@oltarasenko I think perhaps a few common use case examples can be shown in the middleware module doc? Besides proxy, what others would be good?
- remove proxy setting from config.
from crawly.
@oltarasenko You might need to do a patch release to update hexdocs
from crawly.
Related Issues (20)
- curl fetcher HOT 1
- Typespecs for crawly splash fetcher options are wrong
- Suggestion for nameing of closespider_timeout in config HOT 2
- Observed crash of Genserver HOT 1
- Generic `Pipeline crash` error HOT 4
- [question] scrapping dynamic urls HOT 1
- `Could not start application crawly` when trying to enter IEx HOT 2
- js render problem HOT 6
- custom parsar callback sample HOT 7
- Could not compile dependency :epipe HOT 5
- Demo page not loading HOT 3
- Setting up a parametric spider (dynamic base_url and start_urls) HOT 1
- Use a more reliable website to crawl in tutorial HOT 1
- Any working examples? HOT 4
- jl files not found probably not writing HOT 1
- Crawly.fetch giving 301 response instead of 200 HOT 1
- My Spider's code is never invoked, weird behavior with `Crawly.RequestsStorage.pop` in library code HOT 5
- This is actually a question, Nested scraping HOT 2
- Genserver time out crash in long-running pipeline HOT 1
- Stop and resume the spider where it stopped HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crawly.