Skip to content

RaunakJalan/details_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

details_generator

Used to scrape data from https://www.fakenamegenerator.com/

To check the arguments needed :

python details_generator.py -h

To run the script:

python details_generator.py -nr <number of records> -f <csv filepath> -a

Example: 
      python details_generator.py -nr 50 -f "C:\details\data.csv" -a
      python details_generator.py -nr 20 -a
      python details_generator.py -f "C:\details\data.csv" -a
      python details_generator.py -nr 10 -f "C:\details\data.csv"

usage: details_generator.py [-h] [-nr NUMRECORDS] [-f FILENAME] [-a]

Get random names with details and save in CSV!

optional arguments:
  -h, --help            show this help message and exit
  -nr NUMRECORDS, --numrecords NUMRECORDS
                        number of records to fetch
  -f FILENAME, --filename FILENAME
                        the path to store csv file
  -a                    Append to file, Overwrite is default

Enjoy the program! :)

Default number of records: 100

Default file path: .\details.csv

Default mode: Overwrite mode

Thank you. Have a good day.

Releases

No releases published

Packages

No packages published

Languages