📜  复制网站python代码示例

📅  最后修改于: 2022-03-11 14:45:16.320000             🧑  作者: Mango

代码示例1
#This code will copy all contents of a website 
#First install 'pywebcopy' library from command prompt using 'pip install pywebcopy'

import pywebcopy
from pywebcopy import save_website

kwargs = {'project_name': 'talalsite'} # it will create a folder in desired folder with name 'talalsite'

save_website(
    url='https://www.abc.com/',
    project_folder='D:/Talal/game',
    **kwargs
)