EEchinwan
asked on
How to copy text from a particular website that has some security stopping you.
There is a website that I am trying to copy text from, however there appears to be security that is stopping me.
Any suggestions how to copy the text (besides looking at the source)? I tried "no script" for firefox, but that doesnt help.
A sample of the website is:
http://www.roomsandthings.com/North-Shore-Rectangular-Dining-Room-Set-Millennium-D553-REC-FD-SET-p-101099.html?cPath=4884
I am trying to copy the text from the "description" section.
Any suggestions how to copy the text (besides looking at the source)? I tried "no script" for firefox, but that doesnt help.
A sample of the website is:
http://www.roomsandthings.com/North-Shore-Rectangular-Dining-Room-Set-Millennium-D553-REC-FD-SET-p-101099.html?cPath=4884
I am trying to copy the text from the "description" section.
Please provide some more details how you are trying to copy it. Security error may be thrown because you try to copy it from another window or frame.
ASKER
No security error. It does not allow you to select the text to copy.
Could you please provide a snippet which should be intended to copy the text?
ASKER
I am trying to copy from the Description section. If you scroll down on the page it is right below the "Add to cart".
I saved the HTML output and then opened it with Word and then was able to copy the content fine... as a way of bypassing the 'security' implemented on this page...
Enter this into address bar of your browser:
I'm not sure if it will work on the pages of other products, but it's worth a try. You'll get a box with description that you can easily copy.
javascript:(function() { var h4s = document.getElementsByTagName('h4'); for (var i = 0; i < h4s.length; i++) { if (String(h4s[i].innerText).match(/Description/)) prompt('', h4s[i].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('div')[1].innerText); } })();
I'm not sure if it will work on the pages of other products, but it's worth a try. You'll get a box with description that you can easily copy.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
With which browser does that work with? I just tried it in ie8 and it said 404.
Thanks
Thanks
Did you copy the whole part? Maybe you have missed some letter in the beginning? It must start with "javascript:"
By the way, I have also tried it with IE8. It worked for me.
ASKER
It works for me in chrome. I dont know why not in ie8.
But thank you anyway.
But thank you anyway.