Skip to main content

Converting PDF files to text, mainly with a focus on arXiv papers.

Project description

Development Status :: 3 - Alpha

arxiv2text

PyPI package Code style: black

A Python package that converts arXiv documents into structured text using arXiv PDF URLs.


Install

$ pip install arxiv2text
$ pip install git+https://github.com/dsdanielpark/arxiv2text.git

Usage

We use the PDF link as input, not the arXiv abs link. The functionality is incomplete due to the diversity of PDF structures. Example paper: Attention Is All You Need


arxiv_to_text

from arxiv2text import arxiv_to_text

pdf_url = "https://arxiv.org/pdf/1706.03762"

extracted_text = arxiv_to_text(pdf_url)

arxiv_to_html

from arxiv2text import arxiv_to_html

pdf_url = "https://arxiv.org/pdf/1706.03762"

output_dir = "output_folder"
arxiv_to_html(pdf_url, output_dir)

arxiv_to_md

from arxiv2text import arxiv_to_md

pdf_url = "https://arxiv.org/pdf/1706.03762"

output_dir = "output_folder"
arxiv_to_md(pdf_url, output_dir)

License

MIT

The MIT License (MIT)

Copyright (c) 2023 Minwoo Park

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Bugs and Issues

Sincerely grateful for any reports on new features or bugs. Your valuable feedback on the code is highly appreciated.

Contacts

Copyright (c) 2023 MinWoo Park, South Korea

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

arxiv2text-0.1.4.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

arxiv2text-0.1.4-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file arxiv2text-0.1.4.tar.gz.

File metadata

  • Download URL: arxiv2text-0.1.4.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for arxiv2text-0.1.4.tar.gz
Algorithm Hash digest
SHA256 96a0d5ca9d908de7ca9d2673444729ada7112ca5dc906a2751d8a80ace6212fb
MD5 6a9871dd7126f2f551ea3c6b4e5709d1
BLAKE2b-256 7618d250182926ebd19c615f6dfed0f536f2b738674fd2370abbc57b468dfbd7

See more details on using hashes here.

File details

Details for the file arxiv2text-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: arxiv2text-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for arxiv2text-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3da8647a3d6495018b7fa597982ac485f3b2c0c00c4e8c018900dc049b6c6bac
MD5 756617bd0d95755c50ba4a733feee8ca
BLAKE2b-256 94723817ca70e2b197a76673096dfda838950589690b937ea7652cc05a1da87d

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