Skip to main content

Archive a reddit user's post history. Formatted overview of a profile, JSON containing every post, and picture downloads.

Project description

redditsfinder

pip3 install redditsfinder
A command line program to easily download reddit users' post histories.
Get any reddit user's entire post history with one command while avoiding the reddit API's 1000 post limit.
The main meat of this program is making the requests to pushshift and manipulating pushshift's JSON for a more readable all_posts.json file.
There is also a handly image downloader I made that avoids a lot of the problems of trying to grab multiple images from different sites at once. Things like file types being not what the file is encoded as, and changed URLs. Or a URL that ends with .png that returns ASCII text. It gets imgur albums along with images, because at least for a while imgur was essentially reddit's non-official image hosting service.

The colored terminal features and markup are from https://github.com/willmcgugan/rich
pip3 install rich which is one the coolest python packages I've seen. It's very easy to pick up, but as is shown with the animated example in its README, still has a lot of depth.

https://github.com/LoLei/redditcleaner pip3 install redditcleaner was also a massive help for dealing with reddit's strange markup.
Comments and self-posts can be unreadable when put in another format like JSON if they have a fair amount of formatting.
To deal with it, I gave up and looked online for an alternative. Luckily there was a good one readily available. \

Installation

pip3 install redditsfinder

Running redditsfinder

Arguments
Takes an arbitrary number of usernames, such that there is at least one username.
redditsfinder [options] username_0 username_1 username_2 ...
redditsfinder username returns every post to a JSON file and formats a table in the terminal for a quick view.
Optional args
-pics returns URLs of image uploads.
-pics -d downloads them.
-q turns off non log related print statements.

Example terminal table

Imgur Image

Example use of -pics -d

Imgur Image

Example JSON object

Imgur Image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Redditsfinder-1.1.7.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Redditsfinder-1.1.7-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file Redditsfinder-1.1.7.tar.gz.

File metadata

  • Download URL: Redditsfinder-1.1.7.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-48-generic

File hashes

Hashes for Redditsfinder-1.1.7.tar.gz
Algorithm Hash digest
SHA256 989fc669c7149db731f1cbc10f3385427a707fd6b7434bab4112bd07746a7b5c
MD5 ec02842213be760da648963c78b4dee8
BLAKE2b-256 51959df95305a91aa6f8b314020bc6a1198dce9423f4b4cb129a35d5993e1a79

See more details on using hashes here.

File details

Details for the file Redditsfinder-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: Redditsfinder-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-48-generic

File hashes

Hashes for Redditsfinder-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c275a39ee37ffa75322ac483ffa069bba95396b7b24fd98c4ff11c0c2ccc4ba9
MD5 275684c1e8de6ad3801d66fb8af3b4e9
BLAKE2b-256 270837b9237d207e29dc10df1f458b47d7b24bc8d6a5fd7e5c613a0064705bfa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page