Help about URLWRITE.

Hi all,
i'm using urlwrite function for downloading TLE data available at Celestrack.org and n2yo.com for satellite tracking.
Below is the code for one of the satellite.
ri2x='http://www.n2yo.com/satellite/?s=34807';
%save the content into file
urlwrite(ri2x,'ri2.txt');
%opens file 'ri2.txt'
fid4=fopen('ri2.txt','r');
%reads data from 'ri2.txt' into cell array s2
[s4]=textscan(fid4,'%s','delimiter', '\n','whitespace', '');
[s4new]=regexprep(s4{:}, '<.*?>', '');
[s44]=s4new([3 146 147]);
%[s44]=s4new([146 150 151]);
fclose(fid4);
like this i have to download for 14 satellites from 14 url's. But the problem i'm facing is whenever they update their site my matrix index is changing in S44 which is coming out of s4new.
Please suggest the good method to download the required content (Only 3 lines out of ri2.txt)

Risposte (0)

Categorie

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by