News for hackers. Stuff that matters.
Re:I miss the programmable web (2021) by paulgb on Saturday July 30, 2022 @06:00AM (#32285554)
ca. 2014 I was able to write a bookmarklet that scraped a twitter thread by accessing the DOM (even causing page navigation) and rendering it as a reply-tree.

Two things make this vastly more difficult now:

1. Twitter uses obfuscated css classes that appear to change on every deploy, which makes scraping hard.

2. You used to be able to get around the limit on bookmarklet code size by adding a script tag to the page and loading remote javascript. Now browsers respect HTTP headers that sites can use so that only scripts from whitelisted sites are loaded.

Re:I miss the programmable web (2021) by tmaly on Saturday July 30, 2022 @12:57PM (#32288301)
Do older tweets get these new css classes when viewed after a deploy?

I could see using a set of standard tweets you created to sort of benchmark the change.

Re:I miss the programmable web (2021) by paulgb on Saturday July 30, 2022 @03:14PM (#32289453)
I imagine they would. That would be a good approach for data scraping, but difficult to do in a bookmarklet.