Skip to content

About

From Dork to Download: Automating Google Dorks in your Browser or via Playwright

Resources

Stars

51 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Dorkwright

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 Dorkwright

Chrome and Chromium extension

I’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.

  1. Run your favourite dork formula on Google. For example you favourite anti-system far-right party, search for site:example.org filetype:pdf just replace example.org with the domain of you choice. Swap pdf for docx or xlsx or add them info the formula to find other file types.
  2. On the results page, open Dorkwright from the toolbar. Set Additional pages to 0 for just this page or a higher number to collect more, then click Collect pages.
  3. 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.

Dorkwright extension showing collected links, the downloads subfolder, and the Download all button

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.

Python CLI

Install uv, then run these commands from the repository. uv installation guide

uv sync --locked
uv run playwright install chromium

Examples

Search and save links

uv 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.txt

Search and download in one go

uv run dorkwright.py -q "site:example.com filetype:doc" --download --download-dir downloads

Download from a saved or exported list

uv run dorkwright.py --input-file file_links.txt --download-dir my_files

Download through a proxy

# 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:1080

Download with FlareSolverr

These 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:8191

Run 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.

About

From Dork to Download: Automating Google Dorks in your Browser or via Playwright

Resources

Stars

51 stars

Watchers

0 watching

Forks

Contributors

Languages