Skip to main content

A simple Python package to convert URLs to Markdown.

Project description

PyPI version License: MIT Downloads LinkedIn

Pull.md

pull_md is a straightforward Python package that enables developers to convert web pages to Markdown format using the https://pull.md/ service. It provides a simple function that accepts a URL and returns the Markdown conversion of the web page.

Installation

Get started by installing pull_md using pip:

pip install pull_md

Usage

pull_md is easy to use with a simple function that takes a URL as input and outputs the Markdown. Here's a basic example of converting a webpage to Markdown:

from pull_md import pull_markdown

url = "http://example.com"
markdown = pull_markdown(url)
print(markdown)

This function checks the validity of the URL and retrieves the Markdown from the Pull.md service, handling any errors gracefully by providing informative messages.

Note: pull_md is capable of handling web pages that use JavaScript for rendering content, such as those built with ReactJS, Angular, or Vue.js. This makes it suitable for converting modern web applications into Markdown format.

Features

  • Simple function call to convert any URL to Markdown.
  • Capable of handling JavaScript-rendered pages like those built with React, ensuring broad compatibility.
  • Error handling for non-existent URLs or access issues.
  • Dependency only on the requests library for HTTP requests.

Contributing

Contributions to pull_md are welcome! Whether it's bug fixes, feature enhancements, or improvements to the documentation, we appreciate your help. Please feel free to fork the repository and submit pull requests.

  • Fork the Repository: Go to GitHub repository and use the 'fork' button to create your own copy.
  • Clone Your Fork: git clone https://github.com/your-username/pull_md.git
  • Create a Branch: git checkout -b your-branch-name
  • Make Changes and Commit: git add . then git commit -m "Add some changes"
  • Push to GitHub: git push origin your-branch-name
  • Submit a Pull Request: Open your fork on GitHub, select your branch, and click on 'Compare & pull request' button.

For more information on the development process, please check our issues page.

License

pull_md is released under the MIT License. Feel free to use it in any commercial or personal projects.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pull_md-2025.132.816.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pull_md-2025.132.816-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pull_md-2025.132.816.tar.gz.

File metadata

  • Download URL: pull_md-2025.132.816.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for pull_md-2025.132.816.tar.gz
Algorithm Hash digest
SHA256 337c1fe9e27529d681408ead23634596fdfaed604e22f437ea63dff26a7d1b2b
MD5 d30c33da1c4a6f1b0e85e53fe0dda6db
BLAKE2b-256 c94776f7fde5afa3437928b7b099d0ef939e441458de83c6e1ff997343cdf0a8

See more details on using hashes here.

File details

Details for the file pull_md-2025.132.816-py3-none-any.whl.

File metadata

  • Download URL: pull_md-2025.132.816-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for pull_md-2025.132.816-py3-none-any.whl
Algorithm Hash digest
SHA256 cb521c289ab6c5af996603bd08a4be98429f50d5a311b5481191b118b1849dcf
MD5 33c0a0d0624e5c908b7d0c5c572b124b
BLAKE2b-256 b4155f97896be04113726d29217240a053489ea654e93bb6831ce49d7775dcbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page