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
"index" => "h1, h2, h3, h4, h5, h6, p, li" // Tags to index
248
+
],
249
+
// Optional
250
+
// Useful for adding new scrapers
251
+
// The name must be the website host without the scheme i.e. not https://foo.com but foo.com
252
+
"scrapers" => [
253
+
"scraper_name" => ScraperClass::class,
254
+
"scraper_2_name" => Scraper2Class::class // You can add as many as you want
255
+
],
256
+
// Optional
257
+
// Useful for adding new providers
258
+
"providers" => [
259
+
"provider_name" => ProviderClass::class,
260
+
"provider_2_name" => Provider2Class::class // You can add as many as you want
261
+
],
262
+
// Optional
263
+
// Useful for web crawling
264
+
// Please follow the link below for more information as we use Spatie crawler
265
+
// https://github.com/spatie/crawler
266
+
"crawler" => [
267
+
"langs" => ['en'],
268
+
"profile" => CrawlSubdomainsAndUniqueUri::class,
269
+
"user_agent" => 'your user agent',
270
+
"concurrency" => 10,
271
+
"ignore_robots" => false,
272
+
"maximum_depth" => null,
273
+
"execute_javascript" => false,
274
+
"maximum_crawl_count" => null,
275
+
"parseable_mime_types" => 'text/html',
276
+
"maximum_response_size" => 1024 * 1024 * 3,
277
+
"delay_between_requests" => 250,
278
+
]
279
+
];
280
+
```
281
+
202
282
## Changelog
203
283
204
284
Please see [CHANGELOG](https://github.com/snippetify/snippet-sniffer/blob/master/CHANGELOG.md) for more information what has changed recently.
205
285
206
286
## Testing
207
287
208
-
You must set the **PROVIDER_NAME**, **PROVIDER_CX**, **PROVIDER_KEY** keys in phpunit.xml file before running tests.
288
+
You must set the **PROVIDER_NAME**, **PROVIDER_CX**, **PROVIDER_KEY**, **CRAWLER_URI**, **DEFAULT_SCRAPER_URI**, **STACKOVERFLOW_SCRAPER_URI** keys in phpunit.xml file before running tests.
289
+
290
+
**Important:** Those links must contains at least one snippet otherwise the tests will failed. The **Stackoverflow** uri must be a question link with an accepted answer otherwise the tests will failed.
0 commit comments