Google dorks in, file piles out. Dorkwright collects links from Google results and downloads them in bulk. Use the browser extension or the Python CLI.
git clone https://github.com/San-Tus/Dorkwright
cd DorkwrightI’ve noticed that playwright sessions often hit a wall of zero Google results, whereas a standard logged-in session works fine.
Since Google might have some trust issues with headless browsers, building a browser extension is probably the better way to get what we want.
Open chrome://extensions, turn on Developer mode, click Load unpacked, and select the extension folder.
- Run your favourite dork formula on Google. For example you favourite anti-system far-right party, search for
site:example.org filetype:pdfjust replaceexample.orgwith the domain of you choice. Swappdffordocxorxlsxor add them info the formula to find other file types. - On the results page, open Dorkwright from the toolbar. Set Additional pages to
0for just this page or a higher number to collect more, then click Collect pages. - Review the links, pick a Downloads subfolder, and click Download all. Uncheck any links you want to skip and the button changes to Download selected.
If Google asks you to verify, complete the check in the search tab and click Resume paging in Dorkwright.
Use Import URL lists… to add links from a text file with one URL per line. Use Export all as .txt to save the list for later or pass it to the CLI.
Install uv, then run these commands from the repository. uv installation guide
uv sync --locked
uv run playwright install chromiumuv run dorkwright.py -q "site:example.com filetype:doc OR filetype:docx OR filetype:dot"
uv run dorkwright.py -q "site:example.com filetype:pdf" -p 5 -o results.txtuv run dorkwright.py -q "site:example.com filetype:doc" --download --download-dir downloadsuv run dorkwright.py --input-file file_links.txt --download-dir my_files# HTTP proxy
uv run dorkwright.py --input-file file_links.txt --proxy http://127.0.0.1:8080
# SOCKS5 proxy
uv run --with PySocks dorkwright.py --input-file file_links.txt --proxy socks5://127.0.0.1:1080These examples use a local FlareSolverr instance running on port 8191.
uv run dorkwright.py --input-file file_links.txt --flaresolverr http://localhost:8191
uv run dorkwright.py -q "site:example.com filetype:pdf" --download --flaresolverr http://localhost:8191Run uv run dorkwright.py --help for page limits, output paths, and other options.
If Google shows a CAPTCHA, solve it in the browser window, then press Enter in the terminal. Enjoy your daily dose of fire hydrants, chimneys, and buses.
