Python get list of resources from web page [closed]


Python get list of resources from web page [closed]



I want to get a list of all the resources (.html, .js, .css, .png, .mp4, etc) used on a web page, with Python.



For example, if you open the developer tools in your browser and go to the Network tab, you'll see a list of all the file names, and if you click on a file, you'll see the request url and other information about the request. That is what I want to get, although I am only interested in the request url.



Here's a screenshot.



Another example is the Elmedia Player. I took a video, but can't figure out how to upload it, so here's a normal screenshot.



So how can I use Python to get this information? I'm not asking for help with a specific library, I just want to know if there is a package out there that can do this.



Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.





What's wrong with the question?
– user9923191
2 days ago




Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Export result set on Dbeaver to CSV

Opening a url is failing in Swift