Headless browser in Azure functions JavaScript?

tweetypi

I tried using phantomjs but apparently it's unsupported, is there any way to scrape websites using azure functions in javascript?

Peter Pan

There are many restrictions on Azure App Service (includes WebApps, Function Apps), such as Win32k.sys (User32/GDI32) Restrictions. So some packages are not supported on Azure App Service, which like PhantomJS/puppteer be required to start a headless browser which needs GDI support to communicate with javascript/nodejs to get DOM node.

You can scrape a static web page or only HTML via Node http.ClientRequest or Request package in Function App. If to scrape a DOM node of a web page dynamically, the only way is using PhantomJS/puppteer on Azure VM, not Function Apps.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to share code in JavaScript Azure Functions?

分類Dev

Headless Chrome Element is not clickable (works in browser mode)

分類Dev

How to access functions defined in ES6 module in a browser's JavaScript console?

分類Dev

Azure IoT Hub : retrieving messages via browser-side javascript API

分類Dev

Azure FunctionsのDI

分類Dev

Azure FunctionsのDI

分類Dev

Azure FunctionsのDI

分類Dev

Developing Azure functions locally

分類Dev

Azure functions runtime configuration

分類Dev

Azure Functions return IQueryable

分類Dev

Azure Functions Traffic Manager

分類Dev

Focus Mobile Browser with Javascript

分類Dev

How do I start chromium-browser in headless mode? extension "RANDR" missing on display ":99"

分類Dev

Azure Functions does not run on Azure but works locally

分類Dev

Calling Azure functions through the Azure CLI

分類Dev

Azure FunctionsとLogic Apps

分類Dev

Azure FunctionsとLogic Apps

分類Dev

Azure FunctionsとLogic Apps

分類Dev

SQL connection pooling in Azure Functions

分類Dev

Azure Functions Billing Async Methods

分類Dev

Cannot install Azure Functions Extension

分類Dev

Validating Azure Functions CRUD operations

分類Dev

Azure functions & HTTP OPTIONS request

分類Dev

Need clarification on the Azure Functions ecosystem

分類Dev

Serverless architecture - Azure functions @edge

分類Dev

Global exception handler for Azure Functions

分類Dev

Install Python modules in Azure Functions

分類Dev

Use EventEmitter with NodeJs and Azure Functions

分類Dev

JavaScript compose functions