{ "info": { "author": "Jacob Patterson", "author_email": "jacob@jacobpa.com", "bugtrack_url": null, "classifiers": [ "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "# subreddit-mirror\n\nThis is a simple script which will copy posts from one subreddit to another,\nideally used for copying posts to a private subreddit for bot development\npurposes. It requires you to be a moderator of the subreddit you are copying\nposts to, and allows you to choose, along with the source/destination subreddit:\n\n* The sort method of the posts chosen (hot, new, controversial, and top)\n* The time frame to grab posts from (day, week, month, year, all)\n* How many posts to grab\n* Whether or not to include the comments from the post you mirrored (this\n functionality is very time consuming)\n\n### Why?\n\nWhenever I create reddit bots, I would normally manually create posts that mimic\nthe posts I would expect when using my bot. This becomes tedious, especially as\nthe bot grows more dynamic over time. Instead, I figured I could write a script\nwhich would do this tedious work for me, and as an added bonus, the content\nwould be real data from the subreddits I would be targeting. \n\n#### Can't you use this for spam?\n\nI suppose so, but you shouldn't. This script includes a simple check to make\nsure that you're a moderator of the subreddit your mirroring posts to. Although\nthis is easy enough to remove, I figured that anyone who'd want to make a spam\nbot could and probably would have without much effort.\n\n## Installation\n\n```\n$ pip install subreddit-mirror\n```\n\nAlternatively, manually download and install the release file from the Github release page.\n\n## Usage\n```\nusage: subreddit-mirror [-h] [--count COUNT]\n [--sort {hot,new,controversial,top}]\n [--time {day,week,month,year,all}] [--comments] [-v]\n subreddit destination\n\nMirror posts from another subreddit.\n\npositional arguments:\n subreddit subreddit to copy posts from\n destination destination subreddit to post to\n\noptional arguments:\n -h, --help show this help message and exit\n --count COUNT how many posts to try to copy\n --sort {hot,new,controversial,top}\n how to sort posts\n --time {day,week,month,year,all}\n time frame to grab from\n --comments [CAUTION] also mirror comments from threads, may take\n a long time\n -v, --version show program's version number and exit\n```\n\n### Optional Parameter Defaults\n\n| Option | Default Parameter |\n|--------------|-------------------|\n| `--count` | `15` |\n| `--sort` | `'new'` |\n| `--time` | `'day'` |\n| `--comments` | `False` |\n\n\n### Examples\n\n* `$ subreddit-mirror hiphopheads trapmuzik`\n\n Copies the newest 15 newest poststoday from /r/hiphopheads to /r/trapmuzik\n* `$ subreddit-mirror calamariraceteam motorcycles --count 10 --sort top --time all`:\n\n Copies the top 10 posts of all time from /r/calamariraceteam to /r/motorcycles\n\n## Dependencies\n* [PRAW](https://github.com/praw-dev/praw)\n* [progress](https://github.com/verigak/progress) \n\n## License\n```\nsubreddit-mirror -- A script to copy posts from one subreddit to another.\nCopyright (C) 2018 Jacob Patterson\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see .\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "reddit mirror crosspost bot script", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "subreddit-mirror", "package_url": "https://pypi.org/project/subreddit-mirror/", "platform": "", "project_url": "https://pypi.org/project/subreddit-mirror/", "project_urls": { "Github": "https://github.com/jacobpa/subreddit-mirror" }, "release_url": "https://pypi.org/project/subreddit-mirror/1.1.0/", "requires_dist": [ "progress (==1.4)", "praw (==5.4.0)" ], "requires_python": "", "summary": "A script to copy posts from one subreddit to another.", "version": "1.1.0" }, "last_serial": 4102647, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "e89a34a026c320541a9f1b23799cf693", "sha256": "4fb84f96280de6812098cb1fcd700f65c4039b8b4555e5619bbfd463f2f7337a" }, "downloads": -1, "filename": "subreddit_mirror-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e89a34a026c320541a9f1b23799cf693", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7880, "upload_time": "2018-07-26T01:17:42", "url": "https://files.pythonhosted.org/packages/27/59/df446e280b3f552a74ff720d5d902159c4ede4b0058e0506b43cb672f777/subreddit_mirror-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "89b7f88ce7ecbe351c198d0ba57855d2", "sha256": "7f3e2b6c0f3ce175079d3d1cbe080d613245973269fe458a0a23149b9513ef46" }, "downloads": -1, "filename": "subreddit-mirror-1.1.0.tar.gz", "has_sig": false, "md5_digest": "89b7f88ce7ecbe351c198d0ba57855d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5427, "upload_time": "2018-07-26T01:17:43", "url": "https://files.pythonhosted.org/packages/e0/22/c7a619290972c3932f68ff61f12b4dd0c48758fed2ff273bfbc00426cc1e/subreddit-mirror-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e89a34a026c320541a9f1b23799cf693", "sha256": "4fb84f96280de6812098cb1fcd700f65c4039b8b4555e5619bbfd463f2f7337a" }, "downloads": -1, "filename": "subreddit_mirror-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e89a34a026c320541a9f1b23799cf693", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7880, "upload_time": "2018-07-26T01:17:42", "url": "https://files.pythonhosted.org/packages/27/59/df446e280b3f552a74ff720d5d902159c4ede4b0058e0506b43cb672f777/subreddit_mirror-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "89b7f88ce7ecbe351c198d0ba57855d2", "sha256": "7f3e2b6c0f3ce175079d3d1cbe080d613245973269fe458a0a23149b9513ef46" }, "downloads": -1, "filename": "subreddit-mirror-1.1.0.tar.gz", "has_sig": false, "md5_digest": "89b7f88ce7ecbe351c198d0ba57855d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5427, "upload_time": "2018-07-26T01:17:43", "url": "https://files.pythonhosted.org/packages/e0/22/c7a619290972c3932f68ff61f12b4dd0c48758fed2ff273bfbc00426cc1e/subreddit-mirror-1.1.0.tar.gz" } ] }