Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Downloads HTML and Nothing Else #115

Open
jet082 opened this issue Apr 6, 2023 · 4 comments
Open

Only Downloads HTML and Nothing Else #115

jet082 opened this issue Apr 6, 2023 · 4 comments

Comments

@jet082
Copy link

jet082 commented Apr 6, 2023

I'm not sure what I'm doing wrong with my code, if anything.

from pywebcopy import save_website

save_website(url='https://ws-tcg.com/cardlist/?cardno=P3/S01-027&l', project_folder='E:\\pages\\ws_cards\\out2\\', project_name='P3', debug=True, bypass_robots=True, open_in_browser=False)

The only thing this saves is the html file - nothing else. This is also true if I use save_webpage.

@rajatomar788
Copy link
Owner

Try changing the user-agent. Try with threading = True. Also if possible do it manually using WebPage object.

@jayson0m
Copy link

Running into the same issue

@ws-rice
Copy link

ws-rice commented Sep 22, 2023

Same issue here - saving website results in one page, whether from CLI or from code. Most of dependencies from the saved page are also missing.

@rajatomar788
Copy link
Owner

Try creating the webpage object manually and then configuring it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants