1. Create a function to extract the text in the webpage

image.png

image.png

2. Create a listener

First, it listens any kind of messages type but only will trigger a service when the service type is extract_text.

image.png

3. Trigger Extract Text Function

When the listener receives the related request type, it triggers the function to get the scrap the text from the website, then send the scrapted text back to the sender.

image.png