Python Forum
Access my webpage and download files from Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access my webpage and download files from Python
#2
Have you managed to SSH into your server from the command line?
Once inside the server then is normal to use commands like scp, rm or rsync to do stuff with files and folder.

Pedroski55 Wrote:1. download all files in the path,
-r Recursively copy entire directories
scp -r [email protected]:/path/to/foo /home/user/Desktop/
If Copy to Windows,c is the drive C:\.
scp -r [email protected]:/path/to/foo /c/tmp
Pedroski55 Wrote:3. then delete them on the web server.
rm /path/to/directory/*
This is example of usage on server over SSH,can do stuff like this with Python,
then with project like fabric, Paramiko or ansible.
Reply


Messages In This Thread
RE: Access my webpage and download files from Python - by snippsat - May-25-2019, 08:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to access text files, hidden behind 'm3u8' resources Pavel_47 4 2,321 Feb-19-2023, 02:47 PM
Last Post: Pavel_47
  Using range slider in flask webpage to use in python KimPet 2 7,744 Jan-23-2021, 11:58 PM
Last Post: snippsat
  How to access a web service from a python script? dangermaus33 6 3,302 Dec-04-2020, 07:04 AM
Last Post: dangermaus33
  Download some JPG files and make it a single PDF & share it rompdeck 5 5,774 Jul-31-2020, 01:15 AM
Last Post: Larz60+
  Python values on a WebPage Petrouil 1 1,949 Apr-01-2020, 05:08 PM
Last Post: ndc85430
  Read Save RadioButtons from Database in Python Flask Webpage Gary8877 0 7,221 Apr-11-2019, 12:33 AM
Last Post: Gary8877
  display multiple sensors on webpage python flask jinja pascale 6 5,344 Jan-29-2019, 10:10 AM
Last Post: pascale
  I wan't to Download all .zip Files From A Website (Project AI) eddywinch82 68 38,844 Oct-28-2018, 02:13 PM
Last Post: eddywinch82
  I Want To Download Many Files Of Same File Extension With Either Wget Or Python, eddywinch82 15 14,821 May-20-2018, 06:05 PM
Last Post: eddywinch82
  Login in a Webpage using a python program sumandas89 2 12,330 Dec-21-2017, 01:43 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020