https://github.com/eiz/chatgpt_wd
personalize your web experience
https://github.com/eiz/chatgpt_wd
Last synced: over 1 year ago
JSON representation
personalize your web experience
- Host: GitHub
- URL: https://github.com/eiz/chatgpt_wd
- Owner: eiz
- License: mit
- Created: 2023-03-03T23:50:48.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T11:28:30.000Z (over 3 years ago)
- Last Synced: 2025-02-14T18:18:58.629Z (over 1 year ago)
- Language: Rust
- Size: 1.08 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
More stupid fun with ChatGPT. Rewrites web text based on your prompt.
```
cargo install chatgpt_wd
```
Put your OpenAI API key in a text file called `~/.openai`
Download chromedriver from https://chromedriver.chromium.org/downloads and run it
Examples
```
chatgpt_wd https://news.ycombinator.com
chatgpt_wd --sys "You are EmperorBot. Your job is to rewrite text blocks to be consistent with the perspective of the Imperium of Man. The user will supply text blocks and you will rewrite each one to conform to said perspective, producing text of about the same length." https://nytimes.com
```
If you get rate limited, maybe try `--concurrency 1`


# Bugs
the rust `webdriver` crate likes to panic when any kind of error happens. /shrug
the XPaths are very XPath. it won't transform anything with non-text child elements.
this should really be a browser extension instead of using webdriver at all, but it was ez