Skip to content

This repository houses a script that can download PDFs from a specified URL, convert them to text, and perform text analysis. This analysis includes identifying the language, eliminating stopwords, and counting word and phrase frequency. It's worth noting that the script is capable of analyzing texts in multiple languages.

License

Notifications You must be signed in to change notification settings

cortega26/PDF-Text-Analizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Text Analyzer

PDF Text Analyzer is a Python script that downloads a PDF from a URL, converts it to text, and performs text analysis. The text analysis includes detecting the language of the text, removing stopwords, and counting the frequency of words and phrases. The script supports multiple languages.

Requirements

To run the script, you need to have Python 3.x installed on your system. You also need to install the following libraries:

Usage

  1. Run the script: python3 main.py -u "https://www.example.com/document.pdf" -s "example phrase"
  2. Enter the URL of the PDF you want to analyze
  3. Enter a word or phrase to search for in the text (optional)
  4. The script will then download the PDF, extract the text, and perform analysis on the text
  5. The analysis includes word frequency counts, most common words, and a search for a specific word or phrase

Supported Languages

  • Arabic
  • Azerbaijani
  • Basque
  • Bengali
  • Catalan
  • Chinese
  • Danish
  • Dutch
  • English
  • Finnish
  • French
  • German
  • Greek
  • Hebrew
  • Hinglish
  • Hungarian
  • Indonesian
  • Italian
  • Kazakh
  • Nepali
  • Norwegian
  • Portuguese
  • Romanian
  • Russian
  • Slovene
  • Spanish
  • Swedish
  • Tajik
  • Turkish

Bug Reports

If you find a bug or issue, you can report it on the issue tracker on GitHub.

Feature Requests

If you want to request a new feature, you can open an issue on the issue tracker on GitHub.

Contact

If you have any questions or comments, you can contact me for details.

Contributing

If you want to contribute to this project, you can fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the Apache License. See the LICENSE

About

This repository houses a script that can download PDFs from a specified URL, convert them to text, and perform text analysis. This analysis includes identifying the language, eliminating stopwords, and counting word and phrase frequency. It's worth noting that the script is capable of analyzing texts in multiple languages.

Topics

Resources

License

Stars

Watchers

Forks

Languages