105 points · by thunderbong · 2y ago · 40 comments
Example from literally just this morning: I'm organizing an event and the venue wanted an attendee list in Excel format. The event is organized through meetup.com, which has been "app-ifying" their site for years now, which is to say, turning it to useless crap. I went to the list of attendees for the event and tried to copy-paste the 80-ish names so I could clean it up into a usable list... but some cabbage-brained PM has apparently decided that users shouldn't be allowed to copy-paste names out of the attendees list (literally all the text on the page except attendee names was selectable). Fortunately it was trivial to whip up a tiny script to circumvent this, and made me appreciate how annoying it would be to transcribe this all by hand if all I had was a useless locked-down mobile app.
Notably, though: for a certain value of "you" more narrowly scoped than the "you" capable of writing a few lines of JavaScript.
That is just an example of modern web, that is the depressing part.
Actually been giving an excel file would have been liberating.
So I would download all 6 files, then write a script/app to fuzzy search/filter/transform those files as needed. No need to manually scrape using the web form!
For example, here is line 65457 from PMNLSTMN.ZIP. It seems the OP is interested in searching the last column and outputting the first column:
K202167|Cordis Corporation|...|N||Brite Tip Radianz Guiding SheathThat's true, and I actually used that dump[1] and OCR to automate about 80% of this project. The manual data entry was only required for the 20% that couldn't be found automatically.
Since this was just to fill in the gaps, I figured there would be diminishing returns on re-implementing fuzzy search on the data, but adding shortcuts to my manual workflow took less time for a reasonable speedup.
[1] I also used the JSON dump of this data that the FDA provides here: https://open.fda.gov/apis/device/510k/download/
> The device and company names are not standardized, and may have abbreviations, acronyms, or plain old typos. The website's search functionality does not provide fuzzy string matching, so finding a device often takes some trial and error.
[1]: https://wcedmisten.fyi/post/keyboard-shortcuts-userscripts/#....
The Devices@FDA is a single search box, while the one the author used breaks out by field, more useful if you know exactly what company name, etc. you're looking for. Also, Devices@FDA searches both 510(k) and PMA's (the other 1%).
As a side note, for a while the Devices@FDA page was not linked from the "databases" root https://www.fda.gov/medical-devices/device-advice-comprehens.... I emailed them at the comments and feedback link, and they added it within days!
My goal for this project is to create a free/open source website that enhances this 510k data based on the public data dumps. I'd be very interested in hearing about how you use the current website for work, and what improvements would be useful for you! My email is in my about page.
The major enhancement is to show predicate device information as a first-class property of each 510k, since right now the data is buried inside various PDFs.
As an old guy I have to say the "here be dragons" tone of this phrase made me laugh. I never used it myself but there was a time when ColdFusion was huge.
Also I highly recommend VM as your main userscript runner.
It's fully open-source unlike TM, its development is rapid despite having basically only two developers (use the beta version, if needed), and in my very rudimentary tests it runs faster than other competitors (which only makes a difference when you have 100+ scripts or very heavy ones, of course.)
A new one I just encountered is a site where both spacebar and shift+spacebar made the page scroll downwards.
in a lot of cases, a job that restricts you from using industry standard web automation tools like puppeteer or playwright or whatever is also going to restrict you from installing browser extensions.