{"id":19899544,"url":"https://github.com/pushshift/big-data-scripts","last_synced_at":"2025-07-13T12:06:02.124Z","repository":{"id":102301893,"uuid":"47607798","full_name":"pushshift/Big-Data-Scripts","owner":"pushshift","description":"Miscellaneous Python and Perl Scripts for working with Big Data files that are new-line delimited JSON Objects","archived":false,"fork":false,"pushed_at":"2015-12-10T04:40:07.000Z","size":9576,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T20:45:35.241Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pushshift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-08T08:04:51.000Z","updated_at":"2020-05-08T17:49:58.000Z","dependencies_parsed_at":"2023-04-16T03:48:47.505Z","dependency_job_id":null,"html_url":"https://github.com/pushshift/Big-Data-Scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushshift%2FBig-Data-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushshift%2FBig-Data-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushshift%2FBig-Data-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushshift%2FBig-Data-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushshift","download_url":"https://codeload.github.com/pushshift/Big-Data-Scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241329415,"owners_count":19944984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T20:09:01.301Z","updated_at":"2025-03-01T06:44:33.331Z","avatar_url":"https://github.com/pushshift.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Big-Data-Scripts\nMiscellaneous Python Scripts for working with Big Data files that are new-line delimited JSON files\n\n**popular-subreddits.py:**\n\nThis is a simple Python program to read a reddit comment dump and print out the most popular subreddits sorted by number of comments made within each subreddit.\n\nExample usage: ```python popular-subreddits.py sample.bz2```\n\n**popular-words.pl**\n\nThis is a Perl script to show the most popular words from a collection of comments.\n\nExample usage: ```bzip2 -cd sample.bz2 | ./popular-words.pl```\n\n**Linux command line Kung-Fu Examples**\n\nThe following commands will work on most Linux operating systems.  I am using Ubuntu 14.04 for these examples.\n\n*Pretty print JSON and learn about the JSON object structure using Python*\n\n    bzip2 -cd sample.bz2 | head -n1 | python -m json.tool\n\n*Print the author from each JSON block using Perl*\n\nMake sure Cpanel::JSON::XS is installed\n\n    cpan Cpanel::JSON::XS\n\nNow you can do:\n\n    bzip2 -cd sample.bz2 | perl -MCpanel::JSON::XS -lne 'print decode_json($_)-\u003e{author}'\n\n*Sort these authors by number of times they have made a comment*\n\n    bzip2 -cd sample.bz2 | perl -MCpanel::JSON::XS -lne 'print decode_json($_)-\u003e{author}' | sort | uniq -c | sort -n\n\n**Location of main Reddit Data**\n\nYou can download billions of Reddit comments from my main archive.  If you use this data for research, I would kindly ask that you attribute my efforts in your publication.  Thank you!\n\nLocation: http://pan.whatbox.ca:36975/reddit/comments/monthly/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushshift%2Fbig-data-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushshift%2Fbig-data-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushshift%2Fbig-data-scripts/lists"}