From d358a2b2b27bbcaaa0bc10ec31f09c851900245f Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 22 Jun 2024 19:59:47 +0530 Subject: [PATCH] feat: scrape action --- .../molecules/action-settings/scrape.tsx | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/components/molecules/action-settings/scrape.tsx diff --git a/src/components/molecules/action-settings/scrape.tsx b/src/components/molecules/action-settings/scrape.tsx new file mode 100644 index 00000000..5540fb98 --- /dev/null +++ b/src/components/molecules/action-settings/scrape.tsx @@ -0,0 +1,30 @@ +import React, { forwardRef, useImperativeHandle } from 'react'; +import { Stack, TextField } from "@mui/material"; +import { WarningText } from '../../atoms/texts'; +import InfoIcon from "@mui/icons-material/Info"; + +export const ScrapeSettings = forwardRef((props, ref) => { + const [settings, setSettings] = React.useState(''); + useImperativeHandle(ref, () => ({ + getSettings() { + return settings; + } + })); + + return ( + + setSettings(e.target.value)} + /> + + + The scrape function uses heuristic algorithm to automatically scrape only important data from the page. + If a selector is used it will scrape and automatically parse all available + data inside of the selected element(s). + + + ); +});