A simple Python package to convert URLs to Markdown.
Project description
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 .thengit 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pull_md-0.1.4.tar.gz.
File metadata
- Download URL: pull_md-0.1.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5592ece465b7202c5d457a85efba0dbe2ffcda66fdda6a6207be3f363b9c6dd5
|
|
| MD5 |
d8b55e48743068b7d0a10a74c1367650
|
|
| BLAKE2b-256 |
0bffedec3907842dd7d9efd748962c5e9dc5ac2dd12fe4d289bc7910921aacdc
|
File details
Details for the file pull_md-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pull_md-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67c3573ef2cb25a66d1c53a1f342ba3745e8163d8f952b7ee49558f8ee318d87
|
|
| MD5 |
c75989e5efe01dba3a3e976d013358f2
|
|
| BLAKE2b-256 |
03c314570271ecf98dc01452cc17db065f52d3da239d758332e0f49115b0395f
|