Scraping Reddit AMA responses by a specific user requires accessing Reddit’s data either through the Reddit API (official and compliant method) or using web scraping techniques (less reliable, subject to Reddit’s anti-bot protections, and potentially against Reddit’s Terms of Service).
Method 1: Using Reddit API (Recommended)
-
Register for Reddit API access:
-
Go to Reddit Apps
-
Click “Create another app”
-
Fill in:
-
name: e.g. “AMA Scraper”
-
type: “script”
-
redirect URI:
http://localhost:8080
-
-
Note down the
client_idandclient_secret
-
-
Use PRAW (Python Reddit API Wrapper):
Install it:Sample script to get AMA responses by a specific user:
Method 2: Web Scraping (Not recommended unless API is not feasible)
Use requests + BeautifulSoup or Selenium, but Reddit’s structure is JavaScript-heavy, making scraping inefficient without rendering pages like a browser.
Notes:
-
Respect Reddit’s API rate limits.
-
Only public user comments are accessible.
-
AMA posts are usually found in
r/IAmA, but other subs liker/science,r/AskReddit, etc., might also host AMAs.
Would you like a complete script that saves all AMA responses to a CSV or JSON file?