aspacek / Letterboxd-user-film-compare

Will find the similarity in Letterboxd film ratings between two users, a user and who they're following, or a user and their followers.
0 stars 0 forks source link

Have code read in an input file #14

Closed aspacek closed 4 years ago

aspacek commented 4 years ago

Having the user enter a bunch of stuff is cumbersome and annoying to work with. Have an input file that can be read in by the program instead. Then runs can be made and automated and checked much easier, simpler, and better.

Maybe give the user a single option to run with the python program, like:

python program.py input.txt

and then in the program you have: inputs = sys.argv

then sys.argv[1] will be "input.txt" and direct it to read the input file.

Alternatively, you can do:

python program.py new

or something like that, and only then will the program ask for the inputs.

aspacek commented 4 years ago

Note: did what I mentioned above, but just for "verbose" option (0 or 1), see commit below:

https://github.com/aspacek/Letterboxd-user-film-compare/commit/19523cdbf80bae3a4651f265416ea4244888c0b2

aspacek commented 4 years ago

Done! See commit below:

https://github.com/aspacek/Letterboxd-user-film-compare/commit/9d990d6c2116d12d612c641cfc291b6424f14720