开源的不需要写代码的爬虫maxun
转自github热门项目GitHub - getmaxun/maxun: ?? Open-source no-code web data extraction platform. Turn websites to APIs and spreadsheets with no-code robots in minutes! [In Beta]更多详细信息见github。本文主要是讲一下自己部署遇到的一些小问题。可以直接看最后一节获得博主专属个人经验。Maxun Open-Source No-Code Web Data Extraction PlatformLocal SetupDocker Composegit clone https://github.com/getmaxun/maxun docker-compose up -d --buildWithout DockerEnsure you have Node.js, PostgreSQL, MinIO and Redis installed on your system.Run the commands belowgit clone https://github.com/getmaxun/maxunchange directory to the project rootcd maxuninstall dependenciesnpm installchange directory to maxun-core to install dependenciescd maxun-corenpm installstart frontend and backend togethernpm run startYou can access the frontend at http://localhost:5173/ and backend at http://localhost:8080/Environment VariablesCreate a file named.envin the root folder of the projectExample env file can be viewed here.VariableMandatoryDescriptionIf Not SetBACKEND_URLYesURL to run backend on.Backend won’t start. If not sure, set to http://localhost:8080VITE_BACKEND_URLYesURL to run backend on.Backend won’t start. If not sure, set to http://localhost:8080JWT_SECRETYesSecret key used to sign and verify JSON Web Tokens (JWTs) for authentication.JWT authentication will not work.DB_NAMEYesName of the Postgres database to connect to.Database connection will fail.DB_USERYesUsername for Postgres database authentication.Database connection will fail.DB_PASSWORDYesPassword for Postgres database authentication.Database connection will fail.DB_HOSTYesHost address where the Postgres database server is running.Database connection will fail.DB_PORTYesPort number used to connect to the Postgres database server.Database connection will fail.ENCRYPTION_KEYYesKey used for encrypting sensitive data (proxies, passwords).Encryption functionality will not work.MINIO_ENDPOINTYesEndpoint URL for MinIO, to store Robot Run Screenshots.Connection to MinIO storage will fail.MINIO_PORTYesPort number for MinIO service.Connection to MinIO storage will fail.MINIO_ACCESS_KEYYesAccess key for authenticating with MinIO.MinIO authentication will fail.GOOGLE_CLIENT_IDNoClient ID for Google OAuth, used for Google Sheet integration authentication.Google login will not work.GOOGLE_CLIENT_SECRETNoClient Secret for Google OAuth.Google login will not work.GOOGLE_REDIRECT_URINoRedirect URI for handling Google OAuth responses.Google login will not work.REDIS_HOSTYesHost address of the Redis server, used by BullMQ for scheduling robots.Redis connection will fail.REDIS_PORTYesPort number for the Redis server.Redis connection will fail.MAXUN_TELEMETRYNoDisables telemetry to stop sending anonymous usage data. Keeping it enabled helps us understand how the product is used and assess the impact of any new changes. Please keep it enabled.Telemetry data will not be collected.How Does It WorkMaxun lets you create custom robots which emulate user actions and extract data. A robot can perform any of the actions:Capture List, Capture Text or Capture Screenshot. Once a robot is created, it will keep extracting data for you without manual intervention1. Robot ActionsCapture List: Useful to extract structured and bulk items from the website. Example: Scrape products from Amazon etc.Capture Text: Useful to extract individual text content from the website.Capture Screenshot: Get fullpage or visible section screenshots of the website.2. BYOPBYOP (Bring Your Own Proxy) lets you connect external proxies to bypass anti-bot protection. Currently, the proxies are per user. Soon you’ll be able to configure proxy per robot.FeaturesExtract Data With No-CodeHandle Pagination ScrollingRun Robots On A Specific ScheduleTurn Websites to APIsTurn Websites to SpreadsheetsAdapt To Website Layout Changes (coming soon)Extract Behind Login, With Two-Factor Authentication Support (coming soon)Integrations (currently Google Sheet) A lot of amazing things soon!我遇到的问题我是mac电脑首先去docker官网下载了docker.desktop。然后我进入了docker.desktop里面执行git clone GitHub - getmaxun/maxun: ?? Open-source no-code web data extraction platform. Turn websites to APIs and spreadsheets with no-code robots in minutes! [In Beta]和docker-compose up -d --build。这个时候maxun的代码是下载下来了会报错报错找不到env文件所以我们需要自己去maxun代码的目录下去新建一个.env文件里面的内容直接复制Example即可。继续docker-compose up -d --build依然会报错下载各种镜像网络不通docker环境没有安全上网然后我直接使用mac电脑的终端运行因为电脑有安全上网就直接把所有镜像下载下来并且直接构建了应用可以直接使用了。