Skip to content

mr9733n/get-random-japanese-name

Repository files navigation

Japanese Name Generator

This Python script generates random Japanese names by scraping data from namegen.jp. It allows you to specify the number of names to generate, gender, and whether to save the names to a file. The generated names are also logged for reference.

Requirements

  • Python 3.x, Requests library, BeautifulSoup library, Unidecode library

    pip install requests beautifulsoup4 unidecode

Usage

  • Run the script with the desired options. For example:

    python japanese_name_generator.py --num_names 5 --sex male --save_to_file

Options

--num_names: Number of names to generate (default is 1).

--sex: Gender of names ('male' or 'female', default is 'male').

--save_to_file: Save generated names to a file (optional).

The script will generate random Japanese names based on your options and display them in the console.

If you chose to save the names to a file, you can find the file in the "output" directory.

Logging

The script also logs its activities to a log file, which can be found in the "logs" directory. This log includes information about the requests made and the names generated.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published