Copy the screen of a protected site
dadacourse
Posted messages
143
Status
Member
-
[Dal] Posted messages 6122 Registration date Status Contributor Last intervention -
[Dal] Posted messages 6122 Registration date Status Contributor Last intervention -
Bonjour,
A question: a website prevents the selection of its pages on the screen (to then copy them to Excel). Is there a way to lift this restriction?
Thank you.
A question: a website prevents the selection of its pages on the screen (to then copy them to Excel). Is there a way to lift this restriction?
Thank you.
5 answers
-
Hello,
What do you use for copying? -
-
re...
press ctrl a then ctrl c (automatically by excel macro)-
Hello,
Try using alt+print screen manually to see, it's an image not text
Otherwise, it's not easy to program, look at this:
https://www.youtube.com/watch?v=AgpJ-wLaQmw
-
-
Hello dadacourse,
By doing some research, we can see that with an Excel macro, we can retrieve the HTML page corresponding to a URL and parse it. Check out what comes out of this:
https://www.google.fr/search?q=VBA+get+URL
Of course, this should not be used to bombard a site with requests, or to use content in an illegal or unauthorized manner, as with all scraping tools, by the way.
Dal -
Thank you fb89400009, but a photo is not the solution. As for Dal, I am already retrieving the HTML page from a URL without problem, except that now I would like to do the same thing except that the site prohibits selection (ctrl+a). It is this blockage that I would like to "unlock".
Every day I retrieve information from this site for personal use (a site that provides statistics on horse races) and I spend a lot of time there. Not so much the time spent, but the daily manual repetition that I would like to avoid.
Just unlock the prohibition on copying the screen.
Have a good end of the day.-
-
It is really stupid to block a basic feature of a browser like copy-paste, knowing that simply visiting a webpage already stores all the page's content on the disk and that everything is already sent by the server.
If you access the HTML, you have all the content, and you can process it without needing to do any copy-pasting.
If you want to be able to select and copy-paste, you will need to modify the DOM on-the-fly. You can do this with the "developer" features of Firefox or Chrome.
Once you know how to do it, you can, with Firefox and Grease Monkey https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ ensure that your changes are applied to each visit of this URL.
You have to get your hands dirty, but it is not impossible :-)
This will only modify your private way of viewing this page on your browser for your purposes of interoperability.
-