← 开源
unconv

gpt4v-browsing

Web Scraping with GPT-4 Vision API and Puppeteer

ApplicationsPersonalJavaScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
560
Star
243
Fork
+0
本周
1
贡献者
创建于 2023-11-24 · 更新于 2026-10-05 · 今日第 16967 名
主要开发者
unconv
README

GPT4 Vision Web Crawling

This is a GPT4 Vision API and Puppeteer powered tool that can answer questions based on website screenshots. You ask it a question and it will browse to a website and take a screenshot. Then it will use GPT4 Vision API to answer the question based on the screenshot.

JavaScript version

The JavaScript version (vision_crawl.js) is able to not only open a URL directly, but it can also click on links on pages.

$ npm install
$ node vision_crawl.js

Python version

The Python version (vision_crawl.py) is the original version, that only opens one URL at a time directly. The Python version uses JavaScript too, for the Puppeteer part.

$ npm install
$ pip install -r requirements.txt
$ python3 vision_crawl.py

Examples

You can ask stuff like this, for example:

  • "What is the weather like in California?"
  • "What are the latest news in the world?"
  • "What is the current stock price of Tesla?"
  • "How many subscribers does Unconventional Coding have on YouTube?"
排名相邻
同类项目