{"id":23814314,"url":"https://github.com/stuartpb/tvtropes-lua","last_synced_at":"2025-09-06T23:31:56.913Z","repository":{"id":139972249,"uuid":"1428614","full_name":"stuartpb/tvtropes-lua","owner":"stuartpb","description":"Lua scripts for interacting with TVTropes","archived":false,"fork":false,"pushed_at":"2011-04-29T17:49:20.000Z","size":106,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-09T22:14:55.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://tvtropes.org/pmwiki/pmwiki.php/Tropers/STUART","language":"Lua","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/stuartpb.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":"2011-03-02T00:26:42.000Z","updated_at":"2022-05-18T07:36:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"b39a9d12-eb15-4702-9abd-2bdbee5a9283","html_url":"https://github.com/stuartpb/tvtropes-lua","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/stuartpb%2Ftvtropes-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartpb%2Ftvtropes-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartpb%2Ftvtropes-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartpb%2Ftvtropes-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuartpb","download_url":"https://codeload.github.com/stuartpb/tvtropes-lua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232149969,"owners_count":18479564,"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":"2025-01-02T03:47:11.428Z","updated_at":"2025-01-02T03:47:11.940Z","avatar_url":"https://github.com/stuartpb.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nThese scripts require LuaSocket and its HTTP module.\n\n# Posting\nPosting requires a known handle that has accepted the Terms of Serice on TVTropes.\n\n# Files\n\nThe Lua files in this repository are of two types: modules and scripts.\n\n## Modules\n\n### urlencode\n\nA general module for url-encoding strings, and tables (as forms). Required for constructing TVTropes post requests.\n\n### tvtropes\n\nThe module for reading from and posting to TV Tropes. It contains two functions for operating on TV Tropes pages: if the page name is passed with no namespace, the function will prepend \"Main/\".\n\n#### get(page)\n\nGets the source for `page`.\n\n#### post(page, body, handle, passphrase, reason)\n\nPosts `body` to `page` using the given `handle` and `passphrase`, with an optional edit reason.\n\n### tvtropes_post_known\n\nContains a function that posts to TV Tropes using a predefined handle and passphrase (rather than taking them as parameters). When run, the module will read from files named `handle` and `passphrase`: if either file is missing, the script will prompt for it to be entered.\n\nIt can be integrated into the main tvtropes module with something like this:\n\n    local tvtropes = require \"tvtropes\"\n    tvtropes.post_known = require \"tvtropes_post_known\"\n\n## Scripts\n\nThe scripts are designed to be run stand-alone as the root of execution.\n\n### setup.lua\n\nSets up files for handle and passphrase as used by tvtropes_post_known. Without these files, scripts that post to TVTropes using tvtropes_post_known will prompt for a handle and passphrase every time.\n\n### test.lua\n\nThis script tests the TVTropes posting functionality by editing the WikiSandbox page with the provided handle.\n\n### arrdev_recap.lua\n\nA script for generating Recap pages for Arrested Development episodes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuartpb%2Ftvtropes-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuartpb%2Ftvtropes-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuartpb%2Ftvtropes-lua/lists"}