Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Changed user agents according to once actually displayed in browser.

Petr Patek0ab3b0646313
diff --git a/src/utils_request.js b/src/utils_request.js
index 6b6cfdfe0..e0f0a065f 100644
--- a/src/utils_request.js
+++ b/src/utils_request.js
@@ -3,9 +3,8 @@ import * as url from 'url';
import _ from 'underscore';
import httpRequest from '@apify/http-request';
-const FIREFOX_MOBILE_USER_AGENT = 'Mozilla/5.0 (Android 9.0; Mobile; rv:66.0) Gecko/66.0 Firefox/66.0';
-const FIREFOX_DESKTOP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko)'
- + ' Version/11.1.1 Safari/605.1.15';
+const FIREFOX_MOBILE_USER_AGENT = 'Mozilla/5.0 (Android; Mobile; rv:14.0) Gecko/14.0 Firefox/14.0';
+const FIREFOX_DESKTOP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0';
export const REQUEST_AS_BROWSER_DEFAULT_OPTIONS = {
countryCode: 'US',