Skip to content

Instantly share code, notes, and snippets.

@MisterSpicy
Created May 7, 2018 08:34
Show Gist options
  • Save MisterSpicy/1c761bf4cfc1abbc7faeb7c908c87be4 to your computer and use it in GitHub Desktop.
Save MisterSpicy/1c761bf4cfc1abbc7faeb7c908c87be4 to your computer and use it in GitHub Desktop.
%{
"visited" => false,
"author_flair_template_id" => nil,
"pwls" => 6,
"approved_by" => nil,
"view_count" => 9,
"title" => "Unclear on the API Auth Requirements and usage limits.",
"parent_whitelist_status" => "all_ads",
"send_replies" => true,
"created" => 1525684477.0,
"quarantine" => false,
"domain" => "self.redditdev",
"saved" => false,
"subreddit_type" => "public",
"mod_reports" => [],
"locked" => false,
"can_gild" => false,
"suggested_sort" => nil,
"likes" => true,
"permalink" => "/r/redditdev/comments/8hjtlx/unclear_on_the_api_auth_requirements_and_usage/",
"approved_at_utc" => nil,
"created_utc" => 1525655677.0,
"secure_media_embed" => %{},
"contest_mode" => false,
"media_embed" => %{},
"gilded" => 0,
"secure_media" => nil,
"id" => "8hjtlx",
"author_flair_css_class" => nil,
"user_reports" => [],
"banned_at_utc" => nil,
"ups" => 2,
"score" => 2,
"thumbnail" => "self",
"subreddit_subscribers" => 14113,
"mod_note" => nil,
"is_video" => false,
"subreddit_name_prefixed" => "r/redditdev",
"subreddit_id" => "t5_2qizd",
"archived" => false,
"is_crosspostable" => true,
"link_flair_css_class" => nil,
"hide_score" => false,
"name" => "t3_8hjtlx",
"over_18" => false,
"author" => "ricardoandmortimer",
"author_flair_text" => nil,
"is_self" => true,
"banned_by" => nil,
"hidden" => false,
"pinned" => false,
"url" => "https://www.reddit.com/r/redditdev/comments/8hjtlx/unclear_on_the_api_auth_requirements_and_usage/",
"distinguished" => nil,
"num_reports" => nil,
"link_flair_text" => nil,
"whitelist_status" => "all_ads",
"report_reasons" => nil,
"clicked" => false,
"media" => nil,
"selftext" => "Hey Y'all,\n\nI'm writing a read-only scraper, and am confused regarding some of the API Access Rules. I've gotten OAuth working and all that, but it seems heavy handed if I have no interest in posting through program. While the API documentation clearly states that OAuth is required, it also has information for modhashes, and the .json web endpoints are still openly available. There even seems to be some information only available outside of the API, like upvote_percent.\n\nSo lets say, I wanted to track up-vote percent over time, there seems to be no way of doing so through the API, meaning that doing so is breaking the rules?\n\nAm I reading all of this correctly? Is there some prescribed limit to open unauthenticated use? If I were to submit dozens of requests per second, for say, would I run afoul with the DoS countermeasures, since it seems the modhash changes on every request.",
"thumbnail_height" => nil,
"num_comments" => 3,
"can_mod_post" => false,
"mod_reason_title" => nil,
"spoiler" => false,
"thumbnail_width" => nil,
"subreddit" => "redditdev",
"downs" => 0,
"edited" => false,
"removal_reason" => nil,
"no_follow" => false,
"is_reddit_media_domain" => false,
"wls" => 6,
"mod_reason_by" => nil,
"num_crossposts" => 0,
"selftext_html" => "<!-- SC_OFF --><div class=\"md\"><p>Hey Y'all,</p>\n\n<p>I'm writing a read-only scraper, and am confused regarding some of the API Access Rules. I've gotten OAuth working and all that, but it seems heavy handed if I have no interest in posting through program. While the API documentation clearly states that OAuth is required, it also has information for modhashes, and the .json web endpoints are still openly available. There even seems to be some information only available outside of the API, like upvote_percent.</p>\n\n<p>So lets say, I wanted to track up-vote percent over time, there seems to be no way of doing so through the API, meaning that doing so is breaking the rules?</p>\n\n<p>Am I reading all of this correctly? Is there some prescribed limit to open unauthenticated use? If I were to submit dozens of requests per second, for say, would I run afoul with the DoS countermeasures, since it seems the modhash changes on every request.</p>\n</div><!-- SC_ON -->",
"stickied" => false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment