CuteTN / google-scraper

MIT License
1 stars 1 forks source link

[Question] How to render the stored Search Result HTML? #9

Open longnd opened 9 months ago

longnd commented 9 months ago

Issue

image

The stored HTML content is not rendered, making it hard for users to actually check/see the content of the Google search. If we need to render the HTML, how would you do that?

Please note that it is not necessary to open a PR to address this issue. I would like to understand about the possible solution only.

CuteTN commented 9 months ago

@longnd You can download the file under *.html format by clicking on the download button. The file can then be opened with a browser and you can view the Google search result page. If it is required to render the HTML content, these 2 tasks must be done:

longnd commented 9 months ago

@CuteTN Another simpler solution would be using an <iframe> tag to render the stored HTML, it would resolve all of the concerns you mentioned above without the need to process the stored HTML content

<iframe sandbox srcdoc="{Stored HTML}" />
CuteTN commented 9 months ago

@longnd I got it. Thank you for the suggestion!