I need to download manually the HTML of a dynamic page.
I can't use a scraper because the site recognize me.
I tried to inspect the page, but in the Dev Tools I found no way to download the full HTML.
What should I do?
Pardon I'm quite newbie in Computer Science.
if you want to download the page just click these buttons on your keyboard
CTRL + S
That means you will save the current HTML page to your computer.
I hope it's clear and helpful, Thanks!.
Related
I'm just experimenting with stuff.
I want to know how I can transfer data from one JS file to another without linking the two files i.e using the script tag on the same HTML file.
So, when I click a button on one HTML file ('file1.html'), it does something to another HTML file (file2.html).
I have used 'localStorage.set/getItem' which did what I wanted. However, when I put my files online, and try open 'file1.html' on the browser of my mobile phone, the 'file2.html' which is open on my pc, does not seem to update when I click the button on my mobile phone.
I'm sure 'localStorage' will not fulfill my require unless anyone can show me otherwise. Is there any way I could still update 'file2.html' which is on pc, with the button click of 'file1.html' which is on my mobile?
*It works when both files are open on pc using localStorage.
Thank you.
Actually this is what I'm trying to do. I have a form and when a user fills that form it goes to a thank you page where thank you message is displayed. Now what I'm trying to do is as soon as the thank you page opens a pdf file should start downloading without the user clicking anywhere on the page. I tried to find a solution by searching but almost all of them have given a solution where one link is provided and user have to click that link to download her pdf. But that is not what I want. And I want to achieve that using Javascript or jQuery only, no server side language.
A clarification:- PDF download on clicking a link is already working. What I want is PDF to download as soon as thank you page opens. I know logically this should not happen because by doing this anyone can set any number of files to be downloaded as soon as their page opens and fill your local drive. But my client wants only this thing to happen.
Calling click() for the user on an other-wise working link should do the trick:
<html>
download pdf
<script>
var link = document.getElementById("link");
link.click()
</script>
</html>
You can do it, in the HEAD tag:
<meta http-equiv="refresh" content="0; url=yourfile.pdf">
This will work also with browsers without JavaScript, and as soon as the the head tags loaded.
a working example:
See an example on github
You can use ajax to hit the url when the page loads.
EDIT: You might want to check this out https://stackoverflow.com/a/29266135/4549494
I am trying to figure out how I can make a change to javascript and then reload the page with the new javascript changes in the same way you can change CSS and html on the fly. I understand that the javascript will need to actually reload the page, but the problem is once you reload it redownloads the original javascript on the server.
So how can I modify the javascript on the fly so that I can test the design with the new javascript changes without having to upload it to the server?
Perhaps you're wanting to use the LiveEdit feature in Chrome? Using it is as simple as opening the Developer Tools, go to the Sources panel, and use the Ctrl/Cmd + Shift + O to find the script you want to edit. Then click the pause button to pause debugging, modify the script as needed, then Ctrl/Cmd + S to save your modifications, and finally click the pause/resume button to resume execution.
I'm building my first chrome extension using JavaScript. It is required in it to identify the videos in the page a automatically. And then send the info. to web service. I'm not sure if saving the URL and the video tag will be a good idea to remember the video.What do you think? is it a good idea? and if it is OK, how i can identify the video tags which inside the page?
Console in google chrome will tell you if your loading things other than just the site.
Right click inspect page, then click console.
I need a method to be able to print/save the current full webpage as a PDF.
I know it can be done if I download a PDF printer and print to that; but I need it to be done without the user having to do anything other than click a button in a webpage.
I can't do it via PHP as the page is all client side content, so I'm guessing an ActiveX component?
Any ideas would be greatly appreciated!
Many thanks
Try www.freepdfconvert.com - they also have a javascript one click PDF download from any page.