Comments (2)
You can configure options on the underlying Guzzle request using $request->addOption(string $name, mixed $value)
.
So you could write a request middleware that sets the verify
option on each outgoing request and then use that as a downloader middleware in you spider.
use RoachPHP\Downloader\Middleware\RequestMiddlewareInterface;
use RoachPHP\Http\Request;
use RoachPHP\Support\Configurable;
final class WithoutCertificateValidation implements RequestMiddlewareInterface
{
use Configurable;
public function handleRequest(Request $request): Request
{
// Completely disable SSL certificate verification.
return $request->addOption('verify', false);
}
}
from core.
Thanks @ksassnowski 🙏
from core.
Related Issues (20)
- Is there a documented way to scrape Single Page Applications? HOT 1
- Is there any way of accessing the first item inside a processor or an extension? HOT 2
- No publishable resources for tag [] for publishing config file HOT 2
- Pass Context into Request Middleware HOT 3
- This library is no longer maintained? HOT 2
- Possibly to scrape behind secured sessions
- How to process items in batch?
- Laravel 10 support? HOT 1
- No results with specific url HOT 2
- Argument #1 ($timestamp) must be greater than or equal to the current time HOT 1
- How to login and then scrap data from a page that requires auth? HOT 1
- time_sleep_until(): Argument #1 ($timestamp) must be greater than or equal to the current time HOT 4
- Responses dropped by middlewares are not registered HOT 1
- parse method is called even on response status 404 HOT 2
- Requests with ExecuteJavascriptMiddleware are sent twice HOT 1
- When two crawlers need to share the same login operation HOT 1
- You cant run multiple spiders HOT 2
- Parameter type requirements HOT 1
- Even if there is no extension, one get a lot of logging
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 core.