Using 'reeder' to textify more kinds of web resources for llm workflows in the terminal #967
rpdelaney
started this conversation in
Show and tell
Replies: 1 comment
-
|
That's cool, you could make an llm-reeder llm plugin for easy use alongside llm with a keyword like
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Simon already provided strip-tags for reducing HTML to plain text. If you just need to extract plain text for use in your cli workflows, you should stick with that.
However, my use cases are a bit more demanding, as I also use LLMs to interrogate PDF documents and YouTube videos. So, I'm developing reeder to fill those gaps. My aim is to have a one-stop-shop command-line tool for textifying arbitrary web content.
Here's a simple example of reeder summarizing a news story:
$ reed 'https://www.wired.com/story/2025-4chan-hack-admin-leak/' | llm prompt -t tldr -m 4o-miniMarkdown output
Or, using reeder and llm to extract contact information into a qrcoded vCard for easy importing to a mobile device:
$ reed "https://friscolibrary.com/contactus/" | llm prompt "Extract only the contact information and format it as a vCard." -x -m 4o-mini | qrencode -t UTF8i -o -Console output
reeder can extract subtitles from YouTube:
$ reed 'https://www.youtube.com/watch?v=d-7o9xYp7eE' | llm prompt -t tldr -m 4oMarkdown output
Finally, I'm also using reeder to generate briefs on legal documents:
$ reed 'https://storage.courtlistener.com/recap/gov.uscourts.dcd.278436/gov.uscourts.dcd.278436.81.0_5.pdf' | llm prompt -t brief -m o1-miniJSON output
[ { "citation": "J.G.G. v. Trump, Civil Action No. 1:25-cv-00766-JEB (D.D.C. Apr. 16, 2025)", "parties": [ { "name": "J.G.G.", "role": ["Plaintiff"] }, { "name": "Donald J. Trump", "role": ["Defendant"] } ], "narrative": [ { "type": "fact", "data": "On March 15, 2025, the Court issued a Temporary Restraining Order (TRO) preventing the Government from transferring certain individuals into foreign custody under the Alien Enemies Act." }, { "type": "fact", "data": "Despite the TRO, the Government proceeded with removal operations, transferring two planeloads of protected individuals to a Salvadoran mega-prison hours after the Order was issued." }, { "type": "fact", "data": "The plaintiffs filed a lawsuit seeking to restrain the government's removal actions and to certify a class of similarly situated individuals." }, { "type": "fact", "data": "The Supreme Court later vacated the TRO on procedural grounds, determining that challenges to removal under the Act must be brought through a habeas-corpus proceeding." }, { "type": "prior_proceeding", "data": "Plaintiffs filed the initial lawsuit and obtained the TRO on March 15, 2025." }, { "type": "prior_proceeding", "data": "The Government appealed the TRO issuance." }, { "type": "prior_proceeding", "data": "The Supreme Court vacated the TRO on April 7, 2025." } ], "facts": [ { "data": "The TRO was issued to ensure that individuals subject to removal under the Alien Enemies Act could contest their removability in federal court, safeguarding their due process rights." }, { "data": "The Government violated the TRO by transferring two planeloads of protected individuals to a foreign detention facility shortly after the Order was issued." }, { "data": "The plaintiffs allege that the Government's actions demonstrate a willful disregard for the Court's Order." } ], "issue": "Did the Government willfully disregard the Temporary Restraining Order by transferring protected individuals into foreign custody, thereby constituting criminal contempt?", "rule": "Under 18 U.S.C. § 401, criminal contempt requires that a court order be clear and specific, that it was violated, and that the violation was willful or deliberate.", "application": "The Court found that the TRO issued was clear and specifically prohibited the transfer of protected individuals into foreign custody. The Government proceeded with the removal actions despite the TRO, without providing a satisfactory explanation or attempting to comply. This behavior indicates a willful disregard for the Court's Order, fulfilling the criteria for criminal contempt.", "conclusion": "The Court concluded that there is probable cause to find the Government in criminal contempt for willfully violating the Temporary Restraining Order." } ]reeder is under active development: it still has rough edges, lacks docs, and the API should be considered unstable. But if you'd like to give it a try, you can install it from pypi via, e.g.
pipx install reeder.Beta Was this translation helpful? Give feedback.
All reactions