Ploverscript:允许您更轻松地与uTranscribersOfReddit进行交互的脚本

  • v5_530090
    了解作者
  • 17.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-15 04:34
    上传日期
上标 Ploverscript是一个轻量级的Python脚本,可自动执行r / transcribersofreddit的转录过程。 :warning: 警告 :warning: 要使用该脚本,您必须modmail / r / TranscribersOfReddit mods以寻求许可。 此外,您必须确保遵守以下准则: 您不得竞相转录; 不要走得太快,否则会错过东西或不遵守指导原则 您必须遵循格式指南,例如普通的转录器 如果某个帖子违反了国外subreddit的规则(有时会在索赔消息之前显示),则应在国外sub和/ r / ToR帖子中进行报告。 Ploverscript用户可以查找帖子,为其声明版权,撰写符合样式准则的抄本,以及以简化的工作流程提交其工作-无需网络浏览器。 运作方式如下: 您启动脚本,将图像查看器指向data ,并将您喜欢的文本编辑器指向working.md 。 在转录过程中,您将与文本
Ploverscript-master.zip
  • Ploverscript-master
  • main.py
    7KB
  • footer
    329B
  • util.py
    1.2KB
  • resources
  • nocontent.png
    2.4KB
  • notable_rules.json
    1KB
  • repost.py
    406B
  • LICENSE
    1.1KB
  • .gitignore
    1.2KB
  • data.html
    833B
  • passwords.py.template
    220B
  • README.md
    4.6KB
  • template
  • distracted_meme
    472B
  • facebook
    263B
  • text
    306B
  • reddit
    486B
  • greentext
    392B
  • twitter
    301B
  • notext
    139B
  • comics
    206B
  • drake_meme
    529B
  • google_suggestions
    278B
  • other
    193B
  • sms
    240B
  • jokes_meme
    202B
  • none
    131B
  • meme
    214B
内容介绍
# Ploverscript Ploverscript is a lightweight Python script that automates the process of transcribing with r/transcribersofreddit. ## ⚠️ Warning ⚠️ To use the script you **must** modmail /r/TranscribersOfReddit mods to seek permission. Additionally, you must ensure you stick to the following guidelines: * You must not *race* to transcribe; don't go so fast you miss things or don't adhere to the guidelines * You must follow format guides like a normal transcriber * If a post breaks the foreign subreddit's rules (which are *sometimes* displayed before the claim message), you should report it on the foreign sub and the /r/ToR post. --- A Ploverscript user can find posts, claim them, compose transcriptions attending to style guidelines, and submit their work in a streamlined workflow -- no web browser wrangling required. Here's how it works: * You start the script, point an image viewer at `data`, and point your favorite text editor at `working.md`. You will be interacting with the text editor and the script's CLI during the transcription process. * New posts from the TOR subreddit are fetched silently. * Ploverscript tries to locate the most recent image post in the listing, subject to certain conditions. These conditions are: to not be claimed by another user, and to not have been previously rejected by the transcriber. * If there are no such posts -- (congratulations) -- Ploverscript waits a few seconds and returns to the previous step, refreshing the listing. * Otherwise, an image is downloaded to `data` and OCR (taken from `/u/transcribot` or generated locally by `tesseract`) is written to `working.md`. Ploverscript reminds you of rules in vigor on subreddit where the content was posted. * Your image viewer and text editor reload their files. You inspect the image and the OCR you are given to work with. * You can decline the transcription by pressing enter. In this case Ploverscript returns to step 3, seeking out the next most recent image. You can also quit with "q" or refresh the listing with "r". * To claim the transcription, you enter the name of a template (`reddit` for Reddit posts, `facebook` for Facebook shenanigans, `gru_meme` for the "Gru's Plan" meme, etc.) in the `[1. CLAIM]` prompt. For a list of all possible templates, check the top-level `template` directory. Ploverscript once again makes sure that the post is not claimed, notifying you and skipping the post if it is. * You reload `working.md`, which now contains the template you chose. It is designed to remind you of proper formatting guidelines and includes a link to the wiki at the top. (Don't worry about deleting it -- that is done automatically.) OCR output is included in a convenient location. Crucial elements like the transcription header and footer are ready to go. * Meanwhile, Ploverscript waits for the automatic comment reply that confirms our responsibility for the post. In the period up to this confirmation -- we call call it "lock limbo" -- Ploverscript won't let you submit your transcription. * Occasionally, we will lose a race condition. The script notifies us immediately and the transcription is desisted. * Otherwise, the script notifies us of our confirmation. After completing and saving the transcription in `working.md`, pressing return at the `[2. SUBMIT]` prompt posts our work on the foreign thread and finalizes our work with a "done" comment. * Hopefully, another quality transcription has graced Reddit. Ploverscript refreshes the listing and the process begins again. Sounds good? Here's what you need to get started: * A Unix-like shell. We've been working on Linux, but Windows and OSX support should be easy. `wget`, imagemagick and `tesseract` should be installed. * Some well-chosen distribution of Python 3 with PRAW installed. * An image viewer that automatically reloads its image -- feh works for this with `feh --scale-down -R 0.2 data`. Alternatively, you can open `viewer.html` in your web browser. * A text editor that lets you reload the file from disk easily. Almost anything will do. * A "Reddit App" registered under your account. The authentication parameters should be written in `passwords.py` using the template in `passwords.py.template`. Remember to regularly review your comment history and messages! ## Bonus Features Transcriptions you produce with Ploverscript are saved to `archive/`, and the `report.py` CLI lets you query and recall them. This is useful for {re,cross}posts or memes that you have not templated. Entering a search string will recall a transcription containing it, and entering "Y" will copy the previous search result into `working.md`.
评论
    相关推荐
    • 微信编辑器
      微信编辑器,可扩展,自己可以根据需要配置需要显示的属性
    • Flex图片编辑器
      这是我刚入公司的时候用Flex做的一个Web嵌入型图片编辑器,绝对能用,涉及服务端以及JS交互的代码需要自行补全,服务端交互返回数据均为JSON形式。功能包括,本地图片载入、网络图片载入、线条,圆,方形,椭圆,...
    • 文本编辑器 Editer
      Win32 API 写的 文本编辑器,功能齐全 强大 实现功能包括: 文件菜单中新建、打开、另存、保存、预览、打印、退出;编辑菜单中复制、剪切、粘贴、撤消、还原;字体、字号、字色的攺变;段落的左、中、右对齐、缩进...
    • haskell-do::pencil2:-Haskell代码编辑器专注于交互式开发
      haskell-do::pencil2:-Haskell代码编辑器专注于交互式开发
    • HaskellDO一个Haskell代码编辑器专注于交互式开发
      HaskellDO一个Haskell代码编辑器专注于交互式开发
    • CEditor 代码编辑器
      CEditor可以调用xrc(xrc是我实现的C语言解释器)执行简单的C语言代码,在代码中可以调用内置的函数(包括ceditor_exe_2, ceditor_exe_4等函数)和编辑器交互,并且可以调用C的大部分运行时库。对于C开发者,实现...
    • 百度编辑器
      一款功能问强大的编辑器,很不错的编辑器,带有百度地图的
    • 使用ProseMirror,React和Redux构建的交互式科学编辑器-由Curvenote提供。-React开发
      使用ProseMirror,React和Redux构建的交互式科学编辑器-由Curvenote提供。 @ curvenote / editor由ProcurMirror,React和Redux构建的交互式科学编辑器-Curvenote。 为什么我们认为创建精美的React性文档和可解释的...
    • processingjs-interactive:Processing.js交互编辑器
      处理控制台 提供一个交互编辑器来构建和运行脚本,并突出显示语法并自动重新加载。 也可以看看 是一回事。
    • 编辑器
      百度编辑器