Answers for "how to get name of file that was runned subproccess python"

0

"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')
Posted by: Guest on April-28-2020
0

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__)
Posted by: Guest on February-25-2020

Code answers related to "how to get name of file that was runned subproccess python"

Python Answers by Framework

Browse Popular Code Answers by Language