A terminal‑friendly web browser built for comfortable reading on small devices. It turns websites into clean, book‑style pages and remembers exactly where you left off — down to the last paragraph — with automatic progress saving for bookmarked pages. Continous Wattpad stories reading by automatic chapter change.
_.-''''''-._
.-' _ _ '-.
.' (_) (_) '.
/ .-'''-. \
| .' `. |
| / .---. \ |
| | / \ | | |
\ \ \___/ / / /
'. '._ _.' .' /
'-._'''''_.-' .'
'-.....-'
- Accepts:
- Direct URLs (
https://example.com) - Domain shortcuts (
example.com) - Search queries (sent to DuckDuckGo Lite, check other provider in settings), also 'ifl'+text = for "I'm feeling lucky" search-method, which takes the first result)
- Ask AI in terminal (you need to set Groq API - in Settings)
- Automatic page/chapter switch on Wattpad stories
- Direct URLs (
- Commands:
bm— open bookmark managerc— open chronologyai your_question— ask ai (put groq api key in settings first)q— quit the applications— settings
- Uses DuckDuckGo Lite for lightweight HTML results
- Displays:
- Result title
- Cleaned URL (tracking removed)
- Commands:
<number>— open selected resultbm— open bookmark managerh— return to homeq— quit
- Extracts main readable content from the page
- Cleans paragraphs and wraps them to terminal width
- Pagination by paragraph blocks
- Commands:
SPACE/↓— next blockp/↑— previous blockl— switch to link modeb— go back on search resultsbc— go back in chronology (last visited page)m— save current page and block as bookmarks— share (show full url and tiny url to be copied)ai + text— ask something to aiai— ask ai to comment the current block of textbm— open bookmark managerh— homeq— quit
- Lists all extracted links from the page
- Paginated in groups of 20
- Commands:
<number>— open selected linkENTER— next link pagep— previous link paget— return to text modeb— go back in historyi— show main image in terminal (block-colors)bm— open bookmark managerh— homeq— quit
- Stores bookmarks in
~/.tbrowser_bookmarks - Features:
- List all saved URLs, with last read block
- Open a bookmark
- Delete a bookmark (
d<number>)
- Commands:
<number>— open bookmark, at last read blockd<number>— delete bookmarkq— return to previous screen
- Normalizes user input into valid URLs
- Removes DuckDuckGo tracking parameters
- Unwraps redirect links
- Filters ads and trackers (Safe Mode)
- Maintains a stack of visited pages
breturns to the previous page- History is session‑local (not saved to disk)
pip install -r requirements.txt
python text_browser.py
The script automatically check for new version at startup
- Removes:
- Scripts
- Styles
- Headers/footers/navbars
- Detects main content block by size
- Incremental pagination (tested on Wattpad, with url change while scrolling eg. /page/2 ..etc)
- Extracts:
- Paragraphs
- List items
- Links
