Skip to content

Commit

Permalink
added js version with link clicking support
Browse files Browse the repository at this point in the history
  • Loading branch information
unconv committed Nov 23, 2023
1 parent 2265114 commit 8318b11
Show file tree
Hide file tree
Showing 4 changed files with 560 additions and 7 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# GPT4 Vision Web Crawling

This is a GPT4 Vision API and Puppeteer powered tool that will 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.
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.

## Quick Start
## 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.

```shell
$ 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.

```shell
$ npm install
Expand All @@ -17,3 +28,4 @@ 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?"
Loading

0 comments on commit 8318b11

Please sign in to comment.