A GPT-4o powered prayer time scraper
It takes a screenshot of a mosque webpage (after optionally scrolling and/or sleeping) and then passes the screenshot image to the GPT-4o vision API to extract the data
- Firefox should be installed
- Install geckodriver (
cargo install geckodriver
or google for the release binaries)
cargo build
export OPENAI_API_KEY=<your OpenAI key>
cd target/debug # or target/release
./fetcher <URL to screenshot> [--scroll <pixels to scroll>] [--sleep <time to sleep before screenshotting>] | ./interpreter