Search url inside another url in matlab....

조회 수: 1 (최근 30일)
azizullah khan
azizullah khan 2014년 7월 22일
편집: Joseph Cheng 2014년 7월 22일
i want to search a url inside another url... for example www.youtube.com i want to search it in www.zalmos.com or www.awebproxy.com. thanks.... need matlab code......

답변 (1개)

Image Analyst
Image Analyst 2014년 7월 22일
Use strfind() on what urlread gives you.
dotComLocations = strfind(string, '.com')
  댓글 수: 4
Image Analyst
Image Analyst 2014년 7월 22일
I don't know what it means to open one web page in another web page. Are you trying to create HTML code that would show a page with a youtube video embedded in some custom page you create?
Joseph Cheng
Joseph Cheng 2014년 7월 22일
편집: Joseph Cheng 2014년 7월 22일
looking at what zalmos is, makes this feels eerily like clever spam to get people to visit by running their test code. However if this is some legit purpose, then you'd have to figure out the the address "API" (can't think of a better term at the moment) to figure what needs to be sent to the server to get where you want to go. for example if its simple as "www.zalmos.com/youtube/mathwork-tutorials" then there is something easy. but if it turns out to be something like www.zalmos.com/a28346sn/230x89xysls then who knows how they turn the search string into that.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by