Skip to main content

atai-web-tool

atai-web-tool is a command-line utility that extracts the main content from a webpage. It leverages zendriver, readability-lxml, and BeautifulSoup to fetch pages, extract primary content, and display a clean, text-only version.

Features

  • Headless Browsing: Fetch webpages using zendriver.
  • Content Extraction: Extract main content with readability-lxml.
  • Clean Output: Remove unwanted HTML tags using BeautifulSoup.
  • Easy CLI: Run from the terminal with a single command.

Installation

You can install atai-web-tool via pip:

pip install atai-web-tool

If you prefer to install from source, clone the repository and run:

pip install .

Usage

Extract the main content from a webpage by running:

atai-web-tool https://example.com

This command will open the specified URL, extract the primary content, and print it to the terminal.

Requirements

Development

For local development, install the required dependencies using:

pip install -r requirements.txt

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your improvements. For major changes, open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for atai-web-tool 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atai-web-tool 0.0.9
File Size Uploaded
atai_web_tool-0.0.9.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for atai-web-tool 0.0.9
File Interpreter ABI Platform
atai_web_tool-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / atai_web_tool-0.0.9.tar.gz

Download URL atai_web_tool-0.0.9.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a2c8a22056df8da563143ea020b668e347c3a2e45fd0c35c5fa991ace0de9c87
BLAKE2b-256 checksum
How to use checksums
8e290eddf957f71371f121ff96fef02ac70274aedca49dfbb422421a48a72ef5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / atai_web_tool-0.0.9-py3-none-any.whl

Download URL atai_web_tool-0.0.9-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a94f5419de56858a892a777680da3e5a8b0ef64ac72f27b05f0e038d339873f
BLAKE2b-256 checksum
How to use checksums
eacd0a94d274dafec3cb59ca6bf00b0ca3f0ef77bec139c612e9a35047eeeee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page