To scrape public GitHub issues by topic, you can use the GitHub REST API. Below is a Python script using requests to fetch issues related to a specific topic from public repositories.
⚙️ Prerequisites:
-
Python 3.x
-
requestslibrary (pip install requests) -
A GitHub Personal Access Token (optional but recommended to avoid rate limiting)
✅ Python Script to Scrape GitHub Issues by Topic
🔍 Notes:
-
GitHub’s search API only supports repository-level topics. Issues themselves don’t have topics.
-
The script fetches repositories tagged with the specified topic, then scrapes open issues from each.
-
You can customize
MAX_REPOSandMAX_ISSUES_PER_REPOas needed.
Let me know if you want this data exported to CSV or filtered by keywords within the issues.
Share this Page your favorite way: Click any app below to share.