rajatomar788 / pywebcopy

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

issue #1

Closed mayankn792 closed 6 years ago

mayankn792 commented 6 years ago

Exception has occurred: pywebcopy.exceptions.AccessError Access to https://www.odoo.com/forum/help-1/question/odoo-9-show-user-popups-95514 not allowed by site.

this exception has occurred when i am trying to run following script

from pywebcopy.core import save_webpage

save_webpage(url='https://www.odoo.com/forum/help-1/question/odoo-9-show-user-popups-95514',mirrors_dir='C:/')

rajatomar788 commented 6 years ago

Hey bro, The error says it all, the webpage doesnot permit you to scrap the webpage. You can bypass that by adding one more argument to the save_webpage call

Ex. save_webpage (

...your url etc.

, bypass_robots=True )

mayankn792 commented 6 years ago

DONE

but when i am trying to download web-pages from archive.org, .html is file is not downloading

here is code from pywebcopy.core import save_webpage save_webpage(url='http://web.archive.org/web/19970126045828/http://www.archive.org',mirrors_dir='Saved_Pages',bypass_robots=True)

rajatomar788 commented 6 years ago

First your url is either pasted here wrong or is wrong. second can you post a traceback, so that i can inspect the issue.

mayankn792 commented 6 years ago

Thanks

my url was wrong