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.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Update docs
Ondra Urbanc821860935d9
diff --git a/docs/api/social.md b/docs/api/social.mdindex 01d45010f..4e7bd4d5f 100644--- a/docs/api/social.md+++ b/docs/api/social.md@@ -1,6 +1,6 @@---id: social-title: social+title: utils.social---<a name="social"></a>@@ -34,19 +34,19 @@ const emails = Apify.utils.social.emailsFromText('[email protected] bob@example.<a name="social.EMAIL_REGEX"></a>-## `social.EMAIL\_REGEX` : <code>RegExp</code>+## `social.EMAIL_REGEX` : <code>RegExp</code>Regular expression to exactly match a single email address.It has the following form: `/^...$/i`.<a name="social.EMAIL_REGEX_GLOBAL"></a>-## `social.EMAIL\_REGEX\_GLOBAL` : <code>RegExp</code>+## `social.EMAIL_REGEX_GLOBAL` : <code>RegExp</code>Regular expression to find multiple email addresses in a text.It has the following form: `/.../ig`.<a name="social.LINKEDIN_REGEX"></a>-## `social.LINKEDIN\_REGEX` : <code>RegExp</code>+## `social.LINKEDIN_REGEX` : <code>RegExp</code>Regular expression to exactly match a single LinkedIn profile URL, without any additionalsubdirectories or query parameters. The regular expression has the following form: `/^...$/i`.@@ -57,43 +57,43 @@ TODO<a name="social.LINKEDIN_REGEX_GLOBAL"></a>-## `social.LINKEDIN\_REGEX\_GLOBAL` : <code>RegExp</code>+## `social.LINKEDIN_REGEX_GLOBAL` : <code>RegExp</code>Regular expression to find multiple LinkedIn profile URLs in a text.It has the following form: `/.../ig`.<a name="social.INSTAGRAM_REGEX"></a>-## `social.INSTAGRAM\_REGEX` : <code>RegExp</code>+## `social.INSTAGRAM_REGEX` : <code>RegExp</code>Regular expression to exactly match a single Instagram profile URL.It has the following form: `/^...$/i`.<a name="social.INSTAGRAM_REGEX_GLOBAL"></a>-## `social.INSTAGRAM\_REGEX\_GLOBAL` : <code>RegExp</code>+## `social.INSTAGRAM_REGEX_GLOBAL` : <code>RegExp</code>Regular expression to find multiple Instagram profile URLs in a text.It has the following form: `/.../ig`.<a name="social.TWITTER_REGEX"></a>-## `social.TWITTER\_REGEX` : <code>RegExp</code>+## `social.TWITTER_REGEX` : <code>RegExp</code>Regular expression to exactly match a single Instagram profile URL.It has the following form: `/^...$/i`.<a name="social.TWITTER_REGEX_GLOBAL"></a>-## `social.TWITTER\_REGEX\_GLOBAL` : <code>RegExp</code>+## `social.TWITTER_REGEX_GLOBAL` : <code>RegExp</code>Regular expression to find multiple Instagram profile URLs in a text.It has the following form: `/.../ig`.<a name="social.FACEBOOK_REGEX"></a>-## `social.FACEBOOK\_REGEX` : <code>RegExp</code>+## `social.FACEBOOK_REGEX` : <code>RegExp</code>Regular expression to exactly match a single Facebook user profile URL.It has the following form: `/^...$/i`.<a name="social.FACEBOOK_REGEX_GLOBAL"></a>-## `social.FACEBOOK\_REGEX\_GLOBAL` : <code>RegExp</code>+## `social.FACEBOOK_REGEX_GLOBAL` : <code>RegExp</code>Regular expression to find multiple Instagram profile URLs in a text.It has the following form: `/.../ig`.diff --git a/docs/api/utils.md b/docs/api/utils.mdindex f1abe4c24..2dd1421fb 100644--- a/docs/api/utils.md+++ b/docs/api/utils.md@@ -28,13 +28,13 @@ await Apify.utils.sleep(1500);<a name="utils.URL_NO_COMMAS_REGEX"></a>-## `utils.URL\_NO\_COMMAS\_REGEX`+## `utils.URL_NO_COMMAS_REGEX`Default regular expression to match URLs in a string that may be plain text, JSON, CSV or other. It supports common URL charactersand does not support URLs containing commas or spaces. The URLs also may contain Unicode letters (not symbols).<a name="utils.URL_WITH_COMMAS_REGEX"></a>-## `utils.URL\_WITH\_COMMAS\_REGEX`+## `utils.URL_WITH_COMMAS_REGEX`Regular expression that, in addition to the default regular expression `URL_NO_COMMAS_REGEX`, supports matching commas in URL path and query.Note, however, that this may prevent parsing URLs from comma delimited lists, or the URLs may become malformed.diff --git a/website/i18n/en.json b/website/i18n/en.jsonindex 273451552..f66303008 100644--- a/website/i18n/en.json+++ b/website/i18n/en.json@@ -48,7 +48,7 @@"title": "Snapshotter"},"api/social": {- "title": "social"+ "title": "utils.social"},"api/systemstatus": {"title": "SystemStatus"diff --git a/website/sidebars.json b/website/sidebars.jsonindex 4b53541e5..db9041249 100644--- a/website/sidebars.json+++ b/website/sidebars.json@@ -22,7 +22,8 @@"api/requestlist","api/requestqueue","api/utils",- "api/puppeteer"+ "api/puppeteer",+ "api/social"]},"examples": {diff --git a/website/tools/build_docs.js b/website/tools/build_docs.jsindex a182a29c6..ff791844b 100644--- a/website/tools/build_docs.js+++ b/website/tools/build_docs.js@@ -13,7 +13,7 @@ const namespaces = [];const typedefs = [];const getHeader = (title) => {- const prefix = title === 'puppeteer' ? 'utils.' : '';+ const prefix = /puppeteer|social|log/.test(title) ? 'utils.' : '';const id = title.replace(/\s/g, '').toLowerCase();return `---\nid: ${id}\ntitle: ${prefix}${title}\n---\n`;};