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

Path is on mount S: start on mount C: #58

Closed bobsburgers closed 3 years ago

bobsburgers commented 4 years ago

windows 10 pro python 3.7.8 just the one site "https://breakingnewscentral.com/" seems to have this issue.

With either paths 'Downloads/this_dumb_thing' or 'C:/Users/guy/Downloads/this_dumb_thing'

currently i used this `def scrape(url, folder, timeout=1): config.setup_config(url, folder)

wp = WebPage()
wp.get(url)

# start the saving process
wp.save_complete()

# join the sub threads
for t in wp._threads:
    if t.is_alive():
        t.join(timeout)

# location of the html file written
return wp.file_path`

before i just used example code and got the same thing

`kwargs = {'project_name': 'thedetrend'} save_webpage(

    # url pf the website
    url=url,

    # folder where the copy will be saved
    project_folder=folder,
    **kwargs
)`
rajatomar788 commented 4 years ago

Try a different drive path, make sure its an absolute path ending with forward slash.

nxvinh222 commented 3 years ago

Try a different drive path, make sure its an absolute path ending with forward slash.

can you give an example please

rajatomar788 commented 3 years ago

@nxvinh222 see #14

nxvinh222 commented 3 years ago

@nxvinh222 see #14

tks i did it