Table of Contents

Redditors

Redditor Demo GIF

*This GIF has been cut for demonstration purposes.

NOTE: If you are not allowed to access a Redditor's lists, PRAW will raise a 403 HTTP Forbidden exception and the program will just append "FORBIDDEN" underneath that section in the exported file.

All Flags

These are all the flags that may be used when scraping Redditors.

[-u <redditor> <n_results>]

NOTE: The number of results returned are applied to all attributes. I have not implemented code to allow users to specify different number of results returned for individual attributes.

Usage

poetry run Urs.py -u <redditor> <n_results>

Redditor information will be included in the information field and includes the following attributes:

  • comment_karma
  • created_utc
  • fullname
  • has_verified_email
  • icon_img
  • id
  • is_employee
  • is_friend
  • is_mod
  • is_gold
  • link_karma
  • name
  • subreddit
  • trophies

Redditor Interaction Attributes

Redditor interactions will be included in the interactions field. Here is a table of all Redditor interaction attributes that are also included, how they are sorted, and what type of Reddit objects are included in each.

Attribute NameSorted By/Time FilterReddit Objects
CommentsSorted By: NewComments
ControversialTime Filter: AllComments and submissions
DownvotedSorted By: NewComments and submissions
GildedSorted By: NewComments and submissions
GildingsSorted By: NewComments and submissions
HiddenSorted By: NewComments and submissions
HotDetermined by other Redditors' interactionsComments and submissions
ModeratedN/ASubreddits
MultiredditsN/AMultireddits
NewSorted By: NewComments and submissions
SavedSorted By: NewComments and submissions
SubmissionsSorted By: NewSubmissions
TopTime Filter: AllComments and submissions
UpvotedSorted By: NewComments and submissions

These attributes contain comments or submissions. Subreddit attributes are also included within both.

Reddit Object Attributes

This is a table of all attributes that are included for each Reddit object:

SubredditsCommentsSubmissionsMultiredditsTrophies
can_assign_link_flairbodyauthorcan_editaward_id
can_assign_user_flairbody_htmlcreated_utccopied_fromdescription
created_utccreated_utcdistinguishedcreated_utcicon_40
descriptiondistinguishedediteddescription_htmlicon_70
description_htmleditediddescription_mdname
display_nameidis_original_contentdisplay_nameurl
idis_submitteris_selfname
namelink_idlink_flair_textnsfw
nsfwparent_idlockedsubreddits
public_descriptionscorenamevisibility
spoilers_enabledstickiednum_comments
subscribers*submissionnsfw
user_is_bannedsubreddit_idpermalink
user_is_moderatorscore
user_is_subscriberselftext
spoiler
stickied
*subreddit
title
upvote_ratio
url

* Contains additional metadata.

File Naming Conventions

The file names will follow this format:

[USERNAME]-[N_RESULTS]-result(s).json

Scrape data is exported to the redditors directory.