Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
selected-words-counter
Advanced tools
A Python tool that counts specific selected words in a directory of files of different file formats. Outputs the results in a .excel file
Selected Words Counter is a Python tool that scans various file formats within a specified directory for occurrences of specific words from a predefined list, outputting the results in an organized Excel file.
.txt
for streamlined text searching.requirements.txt
)Clone this repository and install the dependencies:
git clone https://github.com/Provincie-Zuid-Holland/selected_words_counter.git
cd selected-words-counter
pip install -r requirements.txt
pip install -e .
If you are on Windows ensure that you have either MS-Office or LibreOffice installed in the default locations for now. So "C:\Program Files\Microsoft Office" or "C:/Program Files/LibreOffice/"
Customize the config.py
file to specify:
Run the tool using:
python main.py
The output Excel file will be saved to the specified location, providing a summary of word counts per file.
To run unit tests on synthetic data, navigate to the ./tests
folder and run pytest
:
cd tests
pytest
Michael de Winter
FAQs
A Python tool that counts specific selected words in a directory of files of different file formats. Outputs the results in a .excel file
We found that selected-words-counter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.