A simple Python Script to extract source code of any URL and store it in a text file.
Before starting, make sure you have Python installed in your system.
SourceCodeExtracter.py
is the python script file. (User can place it anywhere as per their comfort)
Open your terminal and go to the directory where your SourceCodeExtracter.py
is placed.
Run python SourceCodeExtracter.py
and enter the URL to extract source code.
Now enter an Output filename of your choice with .txt extension to save the extracted source code.
Here is the screenshot of my output terminal: