First, ensure that the Metadata Scraper plugin is installed in your Bubble.io application. Go to the "Plugins" section of your app editor and search for "Metadata Scraper". Click "Install" to add it to your application.
2. Setting Up the Action
Once installed, you can use the plugin in workflows where you need to fetch metadata from a web page.
Navigate to the Workflow Editor: Select the page or event where you want to use the metadata scraper.
Add a New Action: Click on "Add an action" in the workflow editor and search for "Metadata Scraper".
Configure the Action: Fill in the required fields, including the URL of the web page you want to scrape. You may also adjust other optional settings, such as maxRedirects, User-Agent, and timeout, according to your needs.
3. Accessing the Data
After executing the action, the metadata will be available as returned data. You can use this data in subsequent actions or to display on your Bubble application. For example, you can display the title of the scraped web page in a text element.
Use Dynamic Data: Choose a text element or any other element where you want to display the metadata. Go to the dynamic data picker and select the Metadata Scraper action. Then, choose the specific piece of metadata you wish to display, such as title or description.
Demo page:
https://ncvplugins-2.bubbleapps.io/version-test/metadata-scraperEditor:
https://bubble.io/page?type=page&name=metadata-scraper&id=ncvplugins-2