{"id":13718491,"url":"https://github.com/Ewpratten/devRantSimple","last_synced_at":"2025-05-07T10:32:19.035Z","repository":{"id":62567903,"uuid":"143306279","full_name":"ewpratten/devRantSimple","owner":"ewpratten","description":"A simple devRant api wrapper for the lazy people","archived":true,"fork":false,"pushed_at":"2018-08-04T20:23:32.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T11:21:35.212Z","etag":null,"topics":["api-wrapper","devrant","python","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ewpratten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-02T14:33:38.000Z","updated_at":"2022-12-18T19:21:57.000Z","dependencies_parsed_at":"2022-11-03T17:02:12.746Z","dependency_job_id":null,"html_url":"https://github.com/ewpratten/devRantSimple","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewpratten%2FdevRantSimple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewpratten%2FdevRantSimple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewpratten%2FdevRantSimple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewpratten%2FdevRantSimple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewpratten","download_url":"https://codeload.github.com/ewpratten/devRantSimple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252859886,"owners_count":21815425,"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":["api-wrapper","devrant","python","python3"],"created_at":"2024-08-03T01:00:29.391Z","updated_at":"2025-05-07T10:32:18.721Z","avatar_url":"https://github.com/ewpratten.png","language":"Python","readme":"# devRantSimple\nA simple devRant api wrapper for the lazy people\n\n## Installation\nFirst, get it from pip\n```bash\npip install devRantSimple\n```\n\nThen, import the library\n```python\nimport devRantSimple as dRS\n```\nThat's it!\n\n## Usage\nThese are the avalible functions and vars:\n```python\nimport devRantSimple as dRS\n\n# Rant Types\n# These are passed in to some functions to specify what data you want returned\ndRS.RantType.algo   # Algo\ndRS.RantType.top    # Top\ndRS.RantType.recent # Recent\n\n# Invalid Response\n# This is a string returned by some functions when something goes wrong.\n# It is always a smart idea to check if the thing returned by the function you are using is equal to this\n# If it is, you messsed up somewhere. (or the api changed)\ndRS.InvalidResponse\n\n# Functions\ndRS.getUserId(\"\u003cusername\u003e\")   # Get a user id from a username (returns an int)\ndRS.userExists(\"\u003cusername\u003e\")  # Check to see if a user exists with this username (returns a bool)\n\ndRS.getRant(dRS.RantType.\u003ctype\u003e, \u003cn\u003e) # Get the n'th rant from list \u003ctype\u003e \n# Example return data for these parameters: (dRS.RantType, 1):\n# {'id': 1604103, 'text:': \"Oh yeah. Hey guys. 2 things. \\nFirst off. Forgot to say. Officially got a job. Finally. So thank you for all the help/advice and patience with my depressive rants!! \\n\\nI'm in a new chapter of my life now so thanks. \\n\\nAnd secondly. \\n\\nI FUCKING HATE MY JOB\", 'score': 66, 'username': 'al-m'}\n\ndRS.getUserRant(\"\u003cusername\u003e\", \u003cn\u003e)  # Get the n'th most recent rant posted by \u003cusername\u003e\n# Example return data for these parameters: (\"ewpratten\", 1):\n# {'text': 'I wonder..\\n\\nDo the new devduck capes say \"devrant.com\" on the back? Or do they still say \"devrant.io\"', 'score': 20, 'tags': ['devrant', 'i wonder'], 'id': 1600704}\n```\nMore functions, data, and info will come soon.\n\n## Example\nThis is an example script that gets every rant posted by a user (one at a time) and prints it to the screen:\n```python\nimport devRantSimple ad dRS\n\nusername = \"ewpratten\n\nprevdata = \"\"\ni = 0\nwhile prevdata != dRS.InvalidResponse:\n\tprevdata = dRS.getUserRant(username, i)[\"text\"]\n\tprint(prevdata)\n\ti+=1\n```\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEwpratten%2FdevRantSimple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEwpratten%2FdevRantSimple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEwpratten%2FdevRantSimple/lists"}