An open API service indexing awesome lists of open source software.

https://github.com/basemax/multifile-text-converter

A Python script to replace Persian/Arabic text content in multiple files with random IDs, creating an Excel mapping.
https://github.com/basemax/multifile-text-converter

arabic csv excel persian py python replace-text replacement

Last synced: 9 months ago
JSON representation

A Python script to replace Persian/Arabic text content in multiple files with random IDs, creating an Excel mapping.

Awesome Lists containing this project

README

          

# MultiFile Text Converter

A Python script to replace Persian/Arabic text content in multiple files with random IDs, creating an Excel mapping.

![MultiFile Text Converter](https://github.com/BaseMax/MultiFile-Text-Converter/assets/2658040/6fc62662-c85a-4849-b3c7-bece4d208d2f)

## Features

- **Text Replacement:** Identify and replace Persian/Arabic text with random IDs.
- **File Iteration:** Processes all files in the current directory except Python files.
- **Excel Output:** Generates an Excel file mapping IDs to original text content.

## Usage

Clone the repository:

```bash
git clone https://github.com/basemax/Text-Content-Replacer.git
```

Install the necessary libraries (if required):

```bash
pip install pandas
```

Run the script:

```bash
python replace.py
```

Check the generated `all_texts.xlsx` file for the mapping of replaced text content.

## Requirements

- Python 3.x
- Pandas

Copyright 2023, Max Base