Improve this answer. Community Bot 1. Nathan W Nathan W Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast An oral history of Stack Overflow — told by its founding team. Millinery on the Stack: Join us for Winter Summer? Let's say I want to get a zip file and then extract it from a specific URL. I want to be able to use a wildcard character in the URL like this:.
HTTP does not work that way. You must use the exact URL in order to request a page from the server. I'm not sure if this helps you, but Flask has a feature that works similarly to what you require.
Here's a working example:. I'm not sure but I think you could do the same with the name of your zip as a String. See here project. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Wildcard Downloads with Python Ask Question. Asked 12 years, 3 months ago. Active 12 years, 3 months ago. Viewed 1k times. Improve this question. Eric Eric. Add a comment. Active Oldest Votes.
Improve this answer. Greg Hewgill Greg Hewgill k gold badges silver badges bronze badges. Isaiah Isaiah 4, 3 3 gold badges 24 24 silver badges 39 39 bronze badges. Connect and share knowledge within a single location that is structured and easy to search. I am trying to list the wildcard files on remote server by using glob. But glob. The glob will not magically start working with a remote server, just because you have instantiated SSHClient before.
You can also use a regular expression for the matching, if it suits your needs better. Side note: Do not use AutoAddPolicy. You lose security by doing so. See Paramiko "Unknown Server". Or use pysftp which is paramiko wrapper and write something like this:.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
0コメント