saving content to text file

I want to save the content from a webpage to a textfile
suppose i have a url
https://www.google.co.in/?gws_rd=cr&ei=ZugiUuGKAcKGrgellYHgBA#q=matlab
i used web command for opening the above page ,now i want to save or write all content in that web page to a text file
Kindly help

 Risposta accettata

Walter Roberson
Walter Roberson il 1 Set 2013

0 voti

urlwrite()

4 Commenti

kash
kash il 2 Set 2013
but urlwrite doesnot write all conents in the webpages the text present in it
i used the below code
URL = 'http://www.mathworks.com/matlabcentral/fileexchange'; filename = 'samples.html'; urlwrite(URL,filename,'get',{'term','urlwrite'});
but how i can to a text file
kash
kash il 2 Set 2013
I tried urlwrite but it writes another data instead of web pge content
Once it has been fetched you can process the HTML to extract the text. In general this will not be simple because of the need to work with javascript and cascading style sheets.

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by