rajatomar788 / pywebcopy

Locally saves webpages to your hard disk with images, css, js & links as is.
https://rajatomar788.github.io/pywebcopy/
Other
527 stars 106 forks source link

TypeError #61

Closed athesh-pargau7 closed 2 years ago

athesh-pargau7 commented 3 years ago

In bypass robots statements it shows me error @rajatomar788 since i assigned true!! bypass_robots=True TypeError: unsupported operand type(s) for ** or pow(): 'bool' and 'dict'

rajatomar788 commented 3 years ago

It shouldn't be happening. Try

bypass_robots="True"
athesh-pargau7 commented 3 years ago

It again shows error @rajatomar788 bypass_robots="True" TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'dict'

instead of bool,it shows string!

rajatomar788 commented 3 years ago

Paste the entire code you are running. Along with the log if ok.

athesh-pargau7 commented 3 years ago

def website_cloner(): #website cloning part

website_url=input("Enter the website URL: ")
name=input("Enter the folder name: ")
path=input("Enter the path to save the files: ")

kwargs = {'project_name': name}

save_webpage(

    # url pf the website
    url=website_url,

    # folder where the copy will be saved
    project_folder=path,
    bypass_robots="True"
    #
    **kwargs
)

website_cloner()

jaraco commented 2 years ago

Please update this issue to include more details in the description. Otherwise, someone looking for a different error has to peek into this error to find out it's not related.

rajatomar788 commented 2 years ago

Bypass_robots takes a bool as its value from now on.

bypass_robots=True