Skip to playerSkip to main content
WebMD's doctor search gives you hundreds of results, no export, and no API. This Tampermonkey userscript adds a collapsible panel to the results page: it auto-scrolls, reads every provider card, stops itself when the page runs out of results, and exports everything to CSV in one click.

What it pulls from each card:
name · specialty · rating and review count · years of experience · accepting-new-patients · phone · booking link · NPI · sponsored flag · full bio

Two of those — NPI and the sponsored flag — aren't visible on the page at all. They're in the markup.

It stops on its own after four scrolls with no new cards, so there's no runaway loop. Auto-save writes rows as they arrive; switch it off and nothing leaves the tab until you export.

Full script in the pinned comment. Needs Tampermonkey (Chrome, Firefox or Edge).

Built for personal research. Check a site's terms before running anything at scale, and keep provider names and phone numbers out of whatever you publish — the data in this video is masked.

#tampermonkey #webscraping #javascript

Category

🤖
Tech
Transcript
00:00WebMD will show you 400 doctors. It will not let you keep the list. No export, no API, just infinite
00:07scroll, and whatever you're willing to copy by hand.
00:10So, a tamper monkey script. It sits in the corner of the page, collapses when you don't need it, and
00:16remembers your settings.
00:17One button. It scrolls, waits for the cards to load, reads them, and keeps going.
00:23And it knows when to stop. Four quiet scrolls with no new cards, and that's the end of the data.
00:29No guessing.
00:30No runaway loop. Then, one click. Name, specialty, rating, years of experience, phone, booking link, NPI, and the full bio.
00:40Every row, already deduplicated. Auto-save on, and it writes as it goes.
00:45Off, and nothing leaves the tab until you say so.
00:49800 lines, so I never touch that page again. It's in the comments.
Comments

Recommended