Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianlesko/text-compression-python
Upload a PDF, extract the text, and compress the text to a binary format
https://github.com/brianlesko/text-compression-python
Last synced: about 20 hours ago
JSON representation
Upload a PDF, extract the text, and compress the text to a binary format
- Host: GitHub
- URL: https://github.com/brianlesko/text-compression-python
- Owner: BrianLesko
- License: mit
- Created: 2024-03-12T01:55:13.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-12T02:43:58.000Z (8 months ago)
- Last Synced: 2024-03-12T03:51:20.264Z (8 months ago)
- Language: Python
- Size: 7.76 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Text Compression from an PDF file
This code implements text parsing from a PDF File and then text compression
## Dependencies
This code uses the following libraries:
- `streamlit`: for building the user interface.
- `pyobjc`: for the PDF text extraction.
- `lz4`: for compressing the encoded text.
## Usage
Run the following commands:
```
pip install --upgrade streamlit zipfile bs4
streamlit run app.py
```This will start the local Streamlit server, and you can access the chatbot by opening a web browser and navigating to `http://localhost:8501`.
## Topics
```
Python | Streamlit | Git | Low Code UI
text scraping | textual data | books
Self taught coding | Mechanical engineer | Robotics engineer
```
╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯
follow all of these or i will kick you