I need to get all lines in a text file that is passed by the console in python. For example:
I had a file named website.txt that has 3 lines:
https://www.amazon.com/
https://www.amazon.com/
https://www.hbo.com/
This file will be passed by the console when the app is executed.
Example: In a Linux terminal:
cat /home/eric/Documentos/websites.txt | python ./application/app.py
So, each line of this file should be read and for each site, I will be the request.
How can I make it?