how to get name of file that was runned subproccess python code example
Example 1: "http://" looks like a URL. Beautiful Soup is not an HTTP client. You should probably use an HTTP client like requests to get the document behind the URL, and feed that document to Beautiful Soup. markup
import warnings
warnings.filterwarnings("ignore", category=UserWarning, module='bs4')
Example 2: get the name of a current script in python
Use __file__. If you want to omit the directory part (which might be present), you can use os.path.basename(__file__)