Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/guides/proxy_management_inspection_cheerio.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { CheerioCrawler, ProxyConfiguration } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new CheerioCrawler({
proxyConfiguration,
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/proxy_management_inspection_http.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { HttpCrawler, ProxyConfiguration } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new HttpCrawler({
proxyConfiguration,
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/proxy_management_inspection_playwright.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { PlaywrightCrawler, ProxyConfiguration } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new PlaywrightCrawler({
proxyConfiguration,
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/proxy_management_inspection_puppeteer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { PuppeteerCrawler, ProxyConfiguration } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new PuppeteerCrawler({
proxyConfiguration,
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/proxy_management_session_cheerio.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { CheerioCrawler, ProxyConfiguration } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new CheerioCrawler({
saveResponseCookies: true,
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/proxy_management_session_http.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { HttpCrawler, ProxyConfiguration } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new HttpCrawler({
saveResponseCookies: true,
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/proxy_management_session_playwright.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { PlaywrightCrawler, ProxyConfiguration } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new PlaywrightCrawler({
saveResponseCookies: true,
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/proxy_management_session_puppeteer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { PuppeteerCrawler, ProxyConfiguration } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new PuppeteerCrawler({
saveResponseCookies: true,
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/proxy_management_session_standalone.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { ProxyConfiguration, SessionPool } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const proxyUrl = await proxyConfiguration.newUrl();
4 changes: 1 addition & 3 deletions docs/guides/session_management_basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { BasicCrawler, ProxyConfiguration, SessionPool } from 'crawlee';
import { Impit } from 'impit';
import { Cookie } from 'tough-cookie';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new BasicCrawler({
// Overrides default Session pool configuration.
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/session_management_cheerio.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { CheerioCrawler, ProxyConfiguration, SessionPool } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new CheerioCrawler({
// To use the proxy IP session rotation logic, you must turn the proxy usage on.
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/session_management_http.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { HttpCrawler, ProxyConfiguration, SessionPool } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new HttpCrawler({
// To use the proxy IP session rotation logic, you must turn the proxy usage on.
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/session_management_playwright.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { PlaywrightCrawler, ProxyConfiguration, SessionPool } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new PlaywrightCrawler({
// To use the proxy IP session rotation logic, you must turn the proxy usage on.
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/session_management_puppeteer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { PuppeteerCrawler, ProxyConfiguration, SessionPool } from 'crawlee';

const proxyConfiguration = new ProxyConfiguration({
/* opts */
});
const proxyConfiguration = new ProxyConfiguration({/* opts */});

const crawler = new PuppeteerCrawler({
// To use the proxy IP session rotation logic, you must turn the proxy usage on.
Expand Down
12 changes: 10 additions & 2 deletions oxlint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ export default defineConfig({
// config refactor; flip them back on in follow-up cleanup PRs.
'prefer-destructuring': 'off',
'no-unassigned-vars': 'off',
'jest/expect-expect': 'off',
'jest/valid-title': 'off',
'vitest/expect-expect': 'off',
'promise/valid-params': 'off',
},
overrides: [
Expand All @@ -139,6 +138,8 @@ export default defineConfig({
'import/no-duplicates': 'off',
'jest/no-conditional-expect': 'off',
'jest/no-disabled-tests': 'off',
'vitest/no-conditional-expect': 'off',
'vitest/no-disabled-tests': 'off',
'vitest/no-conditional-tests': 'off',
'vitest/hoisted-apis-on-top': 'off',
},
Expand All @@ -150,5 +151,12 @@ export default defineConfig({
'no-unused-vars': 'off',
},
},
{
// docs resolve `crawlee` to its unbuilt `dist`, so crawlee types are unknown when linting
files: ['docs/**/*'],
rules: {
'typescript/await-thenable': 'off',
},
},
],
});
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"devDependencies": {
"@apify/log": "^3.0.1",
"@apify/oxlint-config": "^0.2.5",
"@apify/oxlint-config": "^0.3.0",
"@apify/tsconfig": "^0.2.0",
"@commitlint/config-conventional": "^21.0.0",
"@crawlee/basic": "workspace:*",
Expand All @@ -81,7 +81,7 @@
"@opentelemetry/sdk-trace-base": "^2.0.0",
"@opentelemetry/sdk-trace-node": "^2.0.0",
"@opentelemetry/semantic-conventions": "^1.39.0",
"@oxlint/plugins": "^1.62.0",
"@oxlint/plugins": "^1.86.0",
"@playwright/browser-chromium": "1.61.1",
"@playwright/browser-firefox": "1.61.1",
"@playwright/browser-webkit": "1.61.1",
Expand Down Expand Up @@ -122,9 +122,9 @@
"lerna": "^9.0.0",
"lint-staged": "^17.0.0",
"nock": "^14.0.10",
"oxfmt": "^0.46.0",
"oxlint": "^1.62.0",
"oxlint-tsgolint": "^7.0.2001",
"oxfmt": "^0.71.0",
"oxlint": "^1.86.0",
"oxlint-tsgolint": "^7.0.2003",
"playwright": "1.61.1",
"portastic": "^1.0.1",
"proxy": "^2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/basic-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@sapphire/async-queue": "^1.5.5",
"@standard-schema/spec": "^1.0.0",
"csv-stringify": "^6.5.2",
"minimatch": "^10.0.1",
"minimatch": "^10.2.6",
"tldts": "^7.0.6",
"tough-cookie": "^6.0.0",
"tslib": "^2.8.1",
Expand Down
Loading
Loading