Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Refactor to work with praw 2.x

Open
#18 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Locate uses of praw.Submission.all_comments_flat and inspect the existing flatten_tree helper. Replace the removed access using the issue's replace_more_comments and flatten_tree approach, then verify that the bot still gathers all comments when run with praw 2.x.

Written by the indexing model from the issue text.

Description

bug

Bot requires a version of praw.Submission.all_comments_flat, which was removed from praw. To stay up to date, replace all_comments flat like this:

    subm.replace_more_comments()
    all_comments_flat = flatten_tree(subm.comments)

Pertinent discussion: http://www.reddit.com/r/redditdev/comments/17tn7r/replacement_for_all_comments_flat/

Dominant language
Python
Stars
26
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dmarx/VideoLinkBot

All issues in dmarx/VideoLinkBot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.