Git Product home page Git Product logo

handyscripts's Introduction

HandyScripts

Collection of convenient multi-purpose Python scripts

Featuring

  1. repeating_words_finder.py: Analyses text document (can be of txt, pdf or docx format) and produces output if repeated words if they exist with the number of times they occur.
  • Usage:
usage: repeating_words_finder.py [-h] [-l {1-100}] [-p] file_path

Extract content from files and display duplicate words.

positional arguments:
  file_path             Path to the input file (.txt, .pdf, .docx).

optional arguments:
  -h, --help            show this help message and exit
  -l {1-100}, --min_word_len {1-100}
                        Minimum word length to be considered (default is 1).
  -p, --print_content   Print the extracted content before showing repetitions.
  • Sample invokation & output:
python3 repeating_words_finder.py ~/SampleDoc.pdf -l 5
Repetitions of min length 5:
{'users': 3, 'commerce': 2, 'digital': 2, 'design': 2, 'solutions': 2, 'experience': 2, 'technical': 2, 'increase': 2, 'functional': 2}

handyscripts's People

Contributors

artemisks avatar artemiykpr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.