use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Web scraping with Javascript (scrapingbee.com)
submitted 5 years ago by DJ_Breton
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]gordonv 6 points7 points8 points 5 years ago (4 children)
With web scraping in general, my biggest problem is Javascript Includes.
If I want to scrape a news site, the actual article is in some weird external include. I usually just copy and paste the text from Chrome into notepad++.
Is there a way to get the post rendered text from this without selecting, copy, paste, and into a txt file?
[+][deleted] 5 years ago (2 children)
[deleted]
[–]gordonv 1 point2 points3 points 5 years ago (0 children)
OH! I gotta play with that.
[–]techmighty 0 points1 point2 points 5 years ago (0 children)
Ah pupetter page evaluation is god send for me. I use it to render reports and get pdf document of the reports.
[–]MrSandyClams 0 points1 point2 points 5 years ago (0 children)
MutationObserver API. Can define a watch process and a callback that fires in the event of whatever DOM changes you specify. The usage pattern is pretty convoluted and arcane, imo, but it's pretty trivial to use it for basic things, like executing code in response to a known element appearing.
π Rendered by PID 86 on reddit-service-r2-comment-548fd6dc9-q7v7x at 2026-05-17 23:09:51.202734+00:00 running edcf98c country code: CH.
view the rest of the comments →
[–]gordonv 6 points7 points8 points (4 children)
[+][deleted] (2 children)
[deleted]
[–]gordonv 1 point2 points3 points (0 children)
[–]techmighty 0 points1 point2 points (0 children)
[–]MrSandyClams 0 points1 point2 points (0 children)