Skip to content

Commit

Permalink
fix: set blockedResourceTypes to 'All'
Browse files Browse the repository at this point in the history
  • Loading branch information
sruusk committed May 1, 2023
1 parent ac81e0f commit 7d0a90b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export class EseaScraper {

constructor(options?: ScraperOptions) {
this.heroOptions = {
blockedResourceTypes: [],
// https://ulixee.org/docs/hero/overview/configuration#blocked-resources
// Blocking 'All' should work, since we are only looking for JSON responses from the API
blockedResourceTypes: ['All'],
...options?.heroOverrides,
};
this.timeout = options?.timeout ?? this.timeout;
Expand Down

0 comments on commit 7d0a90b

Please sign in to comment.